Re: <?php= ?> sytanx again
| From: | Sterling Hughes | Date: | Fri, 26 Oct 2001 12:41:39 +0000 |
| Subject: | Re: <?php= ?> sytanx again | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-69066@lists.php.net to get a copy of this message | ||
Jani Taskinen wrote:
I'd rather see these magic hacks to be removed altogether.. +1 for removing short-tags and the hacks.These aren't hacks from a technical perspective. I personally am also for <?php= ?> its quite useful as a shortcut instead of <?php echo ?>, i don't see what's hacky about this (plus sometimes you need to write hacky code just to get something simple done). -Sterling
--Jani On Fri, 26 Oct 2001, Derick Rethans wrote:On Fri, 26 Oct 2001, Edin Kadribasic wrote:+1 from me too, it's better then having to do: <?php echo $blaat; ?> Derick ---------------------------------------------------------------------The only possible valid point here is that the character encoding specification in XHTML uses <?xml version=... encoding=...?> although this can also be done through a <meta http-equiv...> tag so it is quite possible to write perfectly valid XHTML without forcing people to use <?php ...?> everywhere.If you want your PHP code to work everywhere you need to use <?php. I see no harm in allowing <?php= syntax (and would personally love to se Yasuo's patch applied).PHP: Scripting the Web - www.php.net - derick@php.net SRM: Site Resource Manager - www.vl-srm.net---------------------------------------------------------------------