| Welcome to WebmasterWorld Guest from 220.127.116.11 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|How to hide code in php|
okay this is a stupid question but im stuggling .
/* is in css
but what is it in php ?
//this is a single line comment
#this is also a comment
And this is a multi line comment
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 ;)
probably the only question I could answer on the php board :)
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.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved