Robby McDonald Posted March 7, 2011 Share Posted March 7, 2011 I have one small question about comments. say you have a code like this <?php $lol = 1; $rofl = 2; $lmao = 3; // Above are my variable's echo 'this does not get executed because the apostrophy in the comment acts as the start'; ?> Now if I wrote this code the apostrophe in variable acts as a quote and does not end until it meets another to end it. Why does this do that? I thought that when you start a comment that whole line gets ignored. Could this possible be happening because of my text editor( I use textpad )? If so could you recommend a good text editor, thanks. Link to comment Share on other sites More sharing options...
trq Posted March 7, 2011 Share Posted March 7, 2011 I thought that when you start a comment that whole line gets ignored. It does. What error are you getting when you execute this? Link to comment Share on other sites More sharing options...
Robby McDonald Posted March 7, 2011 Author Share Posted March 7, 2011 Alright it was just a text editor problem. With that solved, could you recommend a text editor for me? Also where is the solved button? Link to comment Share on other sites More sharing options...
trq Posted March 7, 2011 Share Posted March 7, 2011 With that solved, could you recommend a text editor for me? See http://www.phpfreaks.com/forums/index.php?topic=277416.0 Also where is the solved button? See http://www.phpfreaks.com/forums/index.php?topic=325743.0 Link to comment Share on other sites More sharing options...
Recommended Posts