note 87035 deleted from language.types.string by cmb
| From: | cmb@php.net | Date: | Sun, 04 Aug 2019 09:10:19 +0000 |
| Subject: | note 87035 deleted from language.types.string by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-211796@lists.php.net to get a copy of this message | ||
Note Submitter: Obeliks
----
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.