Autor | Zpráva | ||
---|---|---|---|
hugo123 Profil * |
#1 · Zasláno: 30. 1. 2014, 16:26:29
Ahojte,
mam takuto podmienku if (!ereg("^[0-9]+$", $strana)) a pise mi warning, ze funkcia sa uz nebude pouzivat.
Viete mi prosim poradit, ako nahradit tuto funkciu? Vopred dakujem velmi pekne. |
||
juriad Profil |
Viz dokumentace http://cz2.php.net/ereg:
ereg() is deprecated as of PHP 5.3.0. preg_match() is the suggested alternative to this function. Je tam jediný rozdíl - regulární výraz musí být ohraničen (většinou lomítky): if (!preg_match("/^[0-9]+$/", $strana)) |
||
hugo123 Profil * |
#3 · Zasláno: 30. 1. 2014, 22:05:58
juriad:
dakujem velmi pekne!!!!! |
||
Časová prodleva: 10 let
|
0