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? Quote 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? Quote 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 //. Quote 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 Quote 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! Quote 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'? Quote 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. Quote 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 Quote 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! Quote Link to comment https://forums.phpfreaks.com/topic/66775-comments/#findComment-334624 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.