Re: Strange string stuff -- maybe everything is ending...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/21/2012 6:10 PM, Nathan Nobbe wrote:
On Fri, Dec 21, 2012 at 3:27 PM, Jim Giner <jim.giner@xxxxxxxxxxxxxxxxxx>wrote:


Neat idea Tedd, but judging by a quick test, I don't think changing the
value of the string is entirely supported though that notation.

php > $str = 'blah';
php > $str[3] = '';
php > echo $str . PHP_EOL;
bla
php > echo strlen($str);
4


-nathan

Aha!!!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux