| Welcome to WebmasterWorld Guest from 22.214.171.124 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Accredited PayPal World Seller|
|How to hide code in php|
| 5:54 pm on Aug 28, 2008 (gmt 0)|
okay this is a stupid question but im stuggling .
/* is in css
but what is it in php ?
| 6:23 pm on Aug 28, 2008 (gmt 0)|
//this is a single line comment
#this is also a comment
And this is a multi line comment
| 6:24 pm on Aug 28, 2008 (gmt 0)|
These are called comments. There are two types in PHP.
# This is a comment
// ...and another
Or multiple-line comments:
Here is some text blah blah
and some more
beaten to it ;)
| 6:26 pm on Aug 28, 2008 (gmt 0)|
| 1:06 am on Aug 29, 2008 (gmt 0)|
probably the only question I could answer on the php board :)
| 7:56 pm on Aug 29, 2008 (gmt 0)|
Also if for some weird reason you don't like to use new lines, you can embed a comment into a line by doing:
$expression = /*Why would you ever do this?*/ 'help me';
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
© Webmaster World 1996-2014 all rights reserved