Re: Ever complained about lousy PHP programmers?
| From: | olinux | Date: | Sat, 18 Jan 2003 10:41:48 +0000 |
| Subject: | Re: Ever complained about lousy PHP programmers? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-132081@lists.php.net to get a copy of this message | ||
I prefer single quotes on stuff that doesn't need to
be parsed. In most cases this is more efficient,
though probably not noticed except on a large scale.
I also think it makes it easier to include html
strings (because double quotes don't need to be
escaped) and I find it easier to work my code in
Homesite.
echo '<p>'.$something.' '.$something_else.'</p>';
rather than
echo "<p>$something $something_else</p>";
--- Peter Hutnick <peter-lists@hutnick.com> wrote:
> Well, here's your chance to criticize a newbie.
>
> As an exercise in learning PHP I have written a
> rot-13 script. It is at
> http://hutnick.com/rot13/index.html?show_content=1 .
>
> I'm soliciting comments on style, technique, etc.
> Be brutal, but don't
> get your feelings hurt if I don't take your comments
> as gospel.
> References will help me take comments to heart.
>
> It will be easier on me if you send or CC comments
> to php@hutnick.com.
>
> Thanks a million!
>
> -Peter
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com