note 87035 modified in language.types.string by danbrown

From: Date: Tue, 17 May 2011 14:14:39 +0000
Subject: note 87035 modified in language.types.string by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-179798@lists.php.net to get a copy of this message
Expectedly <?php $string[$x] ?> and <?php substr($string, $x, 1) ?> will yield the same result... normally! However, when you turn on the Function Overloading Feature (http://php.net/manual/en/mbstring.overload.php), this might not be true! If you use this Overloading Feature with 3rd party software, you should check for usage of the String access operator, otherwise you might be in for some nasty surprises. --was-- Expectedly <?php $string[$x] ?> and <?php substr($string, $x, 1) ?> will yield the same result... normally! However, when you turn on the Function Overloading Feature (http://de.php.net/manual/en/mbstring.overload.php), this might not be true! If you use this Overloading Feature with 3rd party software, you should check for usage of the String access operator, otherwise you might be in for some nasty surprises. http://php.net/manual/en/language.types.string.php

« previous php.notes (#179798) next »