RE: [PHP-DEV] Just a little question (sidenote)
| From: | Derick Rethans | Date: | Tue, 19 Nov 2002 11:02:29 +0000 |
| Subject: | RE: [PHP-DEV] Just a little question (sidenote) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-91322@lists.php.net to get a copy of this message | ||
On Tue, 19 Nov 2002, John Coggeshall wrote:
> On a sidenote, is it possible in Zend to implmement something such as:
>
> $string = "Foobar";
> $string = &$string[1];
>
> I actually thought that would work, however upon testing it throws an
> error... Just curious.
No, this would not be possible to do, as a string in PHP is an
continuues range of bytes, and not an array of 'character' zvals.
Reference can only be made to zvals internally.
Derick
--
---------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
JDI Media Solutions
--------------[ if you hold a unix shell to your ear, do you hear the c? ]-