RE: [PHP] Why is the default value for arg_separator.output '&'?

From: Date: Wed, 20 Apr 2005 07:19:27 +0000
Subject: RE: [PHP] Why is the default value for arg_separator.output '&'?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-213478@lists.php.net to get a copy of this message
Jared Williams wrote: >> Given this, why is the default value of arg_separator.output >> '&' and not '&amp;'? > URLs don't have &amp; in them. > The &amp; is specific escaping for _only_ XML. No, XML and SGML which includes XHTML and HTML. How often are PHP sessions used to generate output for languages other then those? And even if you want to generate for other languages, why not set arg_separator.output to ; instead? Its already in arg_separator.input and doesn't need escaping to be represented in an HTML or XHTML document. The HTML specification even goes so far as to explicitly recommend it. -- David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/> Home is where the ~/.bashrc is

« previous php.general (#213478) next »