Ken2k7 Posted August 26, 2007 Share Posted August 26, 2007 How many different kinds of comments are there for PHP? I know the common 2 which are '//' and "/* */". Are there any other ones? Link to comment https://forums.phpfreaks.com/topic/66775-comments/ Share on other sites More sharing options...
schme16 Posted August 26, 2007 Share Posted August 26, 2007 Not so far as I can re-call, there isn't. Any particular reason you wanted to know? Link to comment https://forums.phpfreaks.com/topic/66775-comments/#findComment-334598 Share on other sites More sharing options...
Ken2k7 Posted August 26, 2007 Author Share Posted August 26, 2007 Not so far as I can re-call, there isn't. Any particular reason you wanted to know? Well I just like to make "better-looking" comments. It's getting real old and dull using only /* and //. Link to comment https://forums.phpfreaks.com/topic/66775-comments/#findComment-334599 Share on other sites More sharing options...
utexas_pjm Posted August 26, 2007 Share Posted August 26, 2007 PHP Also supports *nix shell style comments: <?php # less is more... $less = $more; ?> http://us.php.net/manual/en/language.basic-syntax.comments.php Best, Patrick Link to comment https://forums.phpfreaks.com/topic/66775-comments/#findComment-334601 Share on other sites More sharing options...
Jessica Posted August 26, 2007 Share Posted August 26, 2007 I always want my code to be exciting, who wants uniform, easy to read code? If you really want to break up the dull, try using ASP style tags every now and then, or random indentation! Link to comment https://forums.phpfreaks.com/topic/66775-comments/#findComment-334603 Share on other sites More sharing options...
Ken2k7 Posted August 26, 2007 Author Share Posted August 26, 2007 Thanks utexas_pjm. Lastly, in php, is there a difference between using these - '&&' and 'AND', and '||' and 'OR'? Link to comment https://forums.phpfreaks.com/topic/66775-comments/#findComment-334605 Share on other sites More sharing options...
utexas_pjm Posted August 26, 2007 Share Posted August 26, 2007 Yes, their order of evaluation (precedences) differ. Link to comment https://forums.phpfreaks.com/topic/66775-comments/#findComment-334606 Share on other sites More sharing options...
Jessica Posted August 26, 2007 Share Posted August 26, 2007 http://us3.php.net/manual/en/language.operators.logical.php Link to comment https://forums.phpfreaks.com/topic/66775-comments/#findComment-334607 Share on other sites More sharing options...
schme16 Posted August 26, 2007 Share Posted August 26, 2007 I always want my code to be exciting, who wants uniform, easy to read code? If you really want to break up the dull, try using ASP style tags every now and then, or random indentation! Thats is the most amazing thing I've seen anyone post here.... I'm also in total agreement! Link to comment https://forums.phpfreaks.com/topic/66775-comments/#findComment-334624 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.