[Php-it] Intercettare array GET
Jonathan Stoppani
st.jonathan at gmail.com
Sat Aug 12 10:52:04 CEST 2006
On Aug 12, 2006, at 10:00:47, Tassoman (mailing) wrote:
> ________________SPONSOR______________
> Spazio pubblicitario libero.
> mail a info a ziobudda.net
>
>
>
> ________________SPONSOR______________
> michel ha scritto in data 11/08/2006 17:49 :
>> poi se è numerico (is_numeric($_GET['user_id']))
>>
>> Che ne dite ?
>
> Io di solito gli id li controllo con l'espressione regolare.
>
> if(ereg('[0-9]{1,5}',$_GET['id']))
>
> is_numeric mi par che non funziona con le _GET _POST, perché
> dovrebbero tornare
> sempre stringhe anche se son numeri.
is_numeric controlla anche le stringhe:
is_numeric -- Finds whether a variable is a number or a numeric
string (http://ch2.php.net/is_numeric)
Best Regards,
Jonathan Stoppani
------------------------------
Mail: st.jonathan a gmail.com
ICQ: 322754291
AIM: garetjax a mac.com
MSN: st.jonathan a gmail.com
GTalk: st.jonathan a gmail.com
More information about the Php-it
mailing list