string stristr ( string $haystack , mixed $needle [, bool $before_needle = false ] )
Case-insensitive strstr()
Returns all of haystack starting from and including the first occurrence of needle to the end.
<?php
$email = 'USER@EXAMPLE.com';
echo stristr($email, 'e'); // outputs ER@EXAMPLE.com
echo stristr($email, 'e', true); // As of PHP 5.3.0, outputs US
?>
5.3.0 Added the optional parameter before_needle. 4.3.0 stristr() was made binary safe.
15.-Curso PHP-MySQL. Buscar y reemplazar substrings
0 Comment:
Post a Comment