Re: Re: Ever complained about lousy PHP programmers?
| From: | Peter Hutnick | Date: | Thu, 16 Jan 2003 18:44:19 +0000 |
| Subject: | Re: Re: Ever complained about lousy PHP programmers? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-131915@lists.php.net to get a copy of this message | ||
Leon Mergen said:
> Now, first of all, why did you this:
>
> <?php echo("<?xml version=\"1.0\" encoding=\"UTF-8\"
> ?>"); ?>
>
> and not just:
>
> <?xml version="1.0" encoding="UTF-8" ?>
Because short tags are evil ;-) My provider has short tags enabled, so
there is no getting around this bit of ugliness.
> only that I personally prefer to call a print() statement for
> everything
Do you mean as opposed to echo?
If so, would you mind saying a few word as to why?
I read that echo is a "language construct." It seems like it would be
preferable to print() for this reason. On top of that, it will take
multiple strings as input. I think I will remove the parentheses, though.
-Peter