note 126704 added to function.strpos
| From: | axew3 at axew3 dot com | Date: | Wed, 22 Dec 2021 10:51:58 +0000 |
| Subject: | note 126704 added to function.strpos | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-217402@lists.php.net to get a copy of this message | ||
That's may really obvious and stupid to mention
<?php
if( is_int(strpos( '/adm2/php/adm/index.php?sid=5ffeb20ed9e870f03cc1fcef3faae65d',
'/adm')) )
{
echo'found0 ';
}
if( is_int(strpos( '/adm2/php/adm/index.php?sid=5ffeb20ed9e870f03cc1fcef3faae65d',
'/adm2')) )
{
echo'found1 ';
}
if( is_int(strpos( '/adm2/php/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/126704
Del: integrated -- https://main.php.net/note/delete/126704/integrated
Del: useless -- https://main.php.net/note/delete/126704/useless
Del: bad code -- https://main.php.net/note/delete/126704/bad+code
Del: spam -- https://main.php.net/note/delete/126704/spam
Del: non-english -- https://main.php.net/note/delete/126704/non-english
Del: in docs -- https://main.php.net/note/delete/126704/in+docs
Del: other reasons-- https://main.php.net/note/delete/126704
Reject -- https://main.php.net/note/reject/126704
Search -- https://main.php.net/manage/user-notes.php