note 120134 added to function.strpos
| From: | marjune | Date: | Tue, 08 Nov 2016 15:39:29 +0000 |
| Subject: | note 120134 added to function.strpos | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-207051@lists.php.net to get a copy of this message | ||
"If needle is not a string, it is converted to an integer and applied as the ordinal value of a
character. "
meaning we can also use the ascii decimal representation.
<?php
echo strpos('hAystack', 65); // 1
----
Server IP: 72.52.91.14
Probable Submitter: 112.206.85.50
----
Manual Page -- http://php.net/manual/en/function.strpos.php
Edit -- https://master.php.net/note/edit/120134
Del: integrated -- https://master.php.net/note/delete/120134/integrated
Del: useless -- https://master.php.net/note/delete/120134/useless
Del: bad code -- https://master.php.net/note/delete/120134/bad+code
Del: spam -- https://master.php.net/note/delete/120134/spam
Del: non-english -- https://master.php.net/note/delete/120134/non-english
Del: in docs -- https://master.php.net/note/delete/120134/in+docs
Del: other reasons-- https://master.php.net/note/delete/120134
Reject -- https://master.php.net/note/reject/120134
Search -- https://master.php.net/manage/user-notes.php