Shell and C++ Style Comments
Moderator: General Moderators
Shell and C++ Style Comments
In the book I am reading (Programming PHP) it mentions Shell- and C++ style comments, along with C style. In Shell- and C++ style comments it says that anything after the # or // is ignored until the end of the line or that section of code. Does this mean that it still reads ?> but nothing else? Or does it mean something else when it says section?
- hob_goblin
- Forum Regular
- Posts: 978
- Joined: Sun Apr 28, 2002 9:53 pm
- Contact:
Code: Select all
<?
this_function_will_work(); // this_function_wont_work();
// this_function_wont();
this_function_will();
this_function_will_work(); # this_function_wont();
# this_function_wont();
this function_will();
/* this_function_wont();
this_function_wont();
this_function_wont(); */
this_function_will();
?>try this oneand you'll see 
Code: Select all
<html><body><?php
// ?>text
</body></html>