note 126703 added to function.strpos
| From: | axew3 at axew3 dot com | Date: | Wed, 22 Dec 2021 10:48:54 +0000 |
| Subject: | note 126703 added to function.strpos | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-217401@lists.php.net to get a copy of this message | ||
That's really stupid obvious to mention:
if( is_int(strpos( '/adm2/phpbb33/adm/index.php?sid=5ffeb20ed9e870f03cc1fcef3faae65d',
'/adm')) )
{
echo'found0 ';
}
if( is_int(strpos(
'/adm2/phpbb33/adm/index.php?sid=5ffeb20ed9e870f03cc1fcef3faae65d', '/adm2')) )
{
echo'found1 ';
}
if( is_int(strpos(
'/adm2/phpbb33/adm/index.php?sid=5ffeb20ed9e870f03cc1fcef3faae65d', '/adm22')) )
{
echo'found2'; // not found, do not display
}
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.135 (proxied: 2.34.191.205)
----
Manual Page -- https://php.net/manual/en/function.strpos.php
Edit -- https://main.php.net/note/edit/126703
Del: integrated -- https://main.php.net/note/delete/126703/integrated
Del: useless -- https://main.php.net/note/delete/126703/useless
Del: bad code -- https://main.php.net/note/delete/126703/bad+code
Del: spam -- https://main.php.net/note/delete/126703/spam
Del: non-english -- https://main.php.net/note/delete/126703/non-english
Del: in docs -- https://main.php.net/note/delete/126703/in+docs
Del: other reasons-- https://main.php.net/note/delete/126703
Reject -- https://main.php.net/note/reject/126703
Search -- https://main.php.net/manage/user-notes.php