note 120118 added to function.strpos
| From: | (marjunebatac@gmaildotcom) | Date: | Thu, 03 Nov 2016 16:53:05 +0000 |
| Subject: | note 120118 added to function.strpos | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-207013@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 use the ascii decimal value of the needle character.
<?php
echo strpos('hAystack', 65); // 1
----
Server IP: 72.52.91.14
Probable Submitter: 112.206.74.45
----
Manual Page -- http://php.net/manual/en/function.strpos.php
Edit -- https://master.php.net/note/edit/120118
Del: integrated -- https://master.php.net/note/delete/120118/integrated
Del: useless -- https://master.php.net/note/delete/120118/useless
Del: bad code -- https://master.php.net/note/delete/120118/bad+code
Del: spam -- https://master.php.net/note/delete/120118/spam
Del: non-english -- https://master.php.net/note/delete/120118/non-english
Del: in docs -- https://master.php.net/note/delete/120118/in+docs
Del: other reasons-- https://master.php.net/note/delete/120118
Reject -- https://master.php.net/note/reject/120118
Search -- https://master.php.net/manage/user-notes.php