leeandrew Posted March 12, 2008 Share Posted March 12, 2008 I've seen notes in files along the way and just usually deleted them. I have a file right now thats getting kind of clogged and messy, it'd be great if i could put some 'invisible notes' in it a various points so i can keyword search them to save time. I've seen a method like this work... // write your note here But i cant get it to work within echo statements Are there any other note codes i can try Quote Link to comment Share on other sites More sharing options...
cunoodle2 Posted March 12, 2008 Share Posted March 12, 2008 Those "notes" are usually reffered to as "comments" I'm not exactly sure what you mean by invisible notes but you can also use any of the following syntax.. // use this to comment out one line #### These also work and stand out a little /* or you can do this and comment out a few lines at a time */ Does that help? Quote Link to comment Share on other sites More sharing options...
awpti Posted March 12, 2008 Share Posted March 12, 2008 You can't put comments in an echo statement. That's sent as-is. ex; echo "This is a test //Hidden stuffs!"; That's printed out directly. echo "This is a test <!-- Hidden Stuffs! -->"; Would be the proper way to "hide" it in the browser. See the above post for putting comments inside the code itself. Quote Link to comment Share on other sites More sharing options...
leeandrew Posted March 12, 2008 Author Share Posted March 12, 2008 Thanks, this is just what i needed Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.