note 87035 added to language.types.string
| From: | Obeliks at osu1 dot php dot net | Date: | Sun, 16 Nov 2008 04:21:36 +0000 |
| Subject: | note 87035 added to language.types.string | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-146588@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://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.
----
Server IP: 217.160.72.57
Probable Submitter: 88.217.39.20
----
Manual Page -- http://www.php.net/manual/en/language.types.string.php
Edit -- https://master.php.net/note/edit/87035
Del: integrated -- https://master.php.net/note/delete/87035/integrated
Del: useless -- https://master.php.net/note/delete/87035/useless
Del: bad code -- https://master.php.net/note/delete/87035/bad+code
Del: spam -- https://master.php.net/note/delete/87035/spam
Del: non-english -- https://master.php.net/note/delete/87035/non-english
Del: in docs -- https://master.php.net/note/delete/87035/in+docs
Del: other reasons-- https://master.php.net/note/delete/87035
Reject -- https://master.php.net/note/reject/87035
Search -- https://master.php.net/manage/user-notes.php