Warning: file_put_contents(): Only -1 of 45 bytes written, possibly out of free disk space in /var/www/html/index.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 25
eregi_replace split Regex POSIX PHP Manual eregi (PHP 4, 5) — Recherche par expression rationnelle insensible à la casse Description int ( string $pattern , $string [, array &$regs ] ) eregi() e...
Forum und email

eregi

(PHP 4, PHP 5)

eregi — Recherche par expression rationnelle insensible à la casse

Description

int eregi ( string $pattern , string $string [, array &$regs ] )

eregi() est identique à ereg(), hormis le fait qu'elle ignore la casse des caractères lors de la recherche sur les caractères alphabétiques.

Example#1 Exemple avec eregi()

<?php
$string 
= 'XYZ';
if (
eregi('z', $string)) {
    echo 
"'$string' contient un 'z' ou un 'Z'!";
}
?>

Voir aussi ereg(), ereg_replace(), eregi_replace(), stripos() et stristr().