note 126705 deleted from function.strpos by cmb
| From: | cmb@php.net | Date: | Wed, 22 Dec 2021 12:03:04 +0000 |
| Subject: | note 126705 deleted from function.strpos by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-217406@lists.php.net to get a copy of this message | ||
Note Submitter: axew3 at you dot us
----
For what it worth to mention, to just check if it is true or not that a string exist into another,
may this is a way
<?php
if( is_int(strpos( '/adm2/php/adm/index.php', '/adm')) )
{
echo'found0 '; // found
}
if( is_int(strpos( '/adm2/php/adm/index.php', '/adm2')) )
{
echo'found1 '; // found
}
if( is_int(strpos( '/adm2/php/adm/index.php', '/adm22')) )
{
echo'found2'; // not found
}
?>