Home :: International :: Manuals :: Howto :: FAQ :: Man Pages :: Email Login

 
 

 

eregi

(PHP 3, PHP 4 , PHP 5)

eregi -- Riconoscimento di espressioni regolari senza distinzione tra maiuscole e minuscole

Descrizione

bool eregi ( string espressione_regolare, string stringa [, array regs])

Questa funzione è identica a ereg(), tranne che per il fatto che non distingue tra lettere maiuscole e lettere minuscole.

Esempio 1. Esempio di eregi()

<?php
if (eregi("z", $stringa)) {
    echo
"'$stringa' contiene una 'z' oppure una 'Z'!";
}
?>

Vedere anche ereg(), ereg_replace(), eregi_replace(), stripos() e stristr().

 
 
 
 
Google
  Web Linuxinfor   
 

Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account

Document on this page is part of "Manuale PHP". See Index Page for more info about Authorship and Copyright.

1999-2009 Linuxinfor.com. No rights reserved.