Re[2]: [PHP] Re: Ever complained about lousy PHP programmers?
| From: | Tom Rogers | Date: | Fri, 17 Jan 2003 10:51:14 +0000 |
| Subject: | Re[2]: [PHP] Re: Ever complained about lousy PHP programmers? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-131983@lists.php.net to get a copy of this message | ||
Hi,
Friday, January 17, 2003, 4:44:19 AM, you wrote:
PH> 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" ?>
PH> Because short tags are evil ;-) My provider has short tags enabled, so
PH> there is no getting around this bit of ugliness.
>> only that I personally prefer to call a print() statement for
>> everything
PH> Do you mean as opposed to echo?
PH> If so, would you mind saying a few word as to why?
PH> I read that echo is a "language construct." It seems like it would be
PH> preferable to print() for this reason. On top of that, it will take
PH> multiple strings as input. I think I will remove the parentheses, though.
PH> -Peter
put it into single quotes and it is a bit tidier :) and you don't need the semi
colon if you are ending php parsing.
<?php echo '<?xml version="1.0" encoding="UTF-8" ?>'?>
--
regards,
Tom