[Php-it] stripslash, quando usarlo?

Emiliano Gabrielli (aka AlberT) AlberT at superalbert.it
Tue Sep 5 13:48:20 CEST 2006


On Tuesday 05 September 2006 13:23, Luca 'Ziabice' Gambetta wrote:
> Come chiosa è bene ricordare che un valore che viene dall'esterno via
> richiesta HTTP è _sempre_ una stringa: se è un array è un array di
> stringhe.

come appunto (e come supporto all'uso di array_key_exists):
 un valore che viene dall'esterno via richiesta HTTP DOVREBBE ESSERE _sempre_ 
una stringa: se è un array è un array di stringhe.


ovvero, se in futuro php avesse un bug interno per cui "NULL" venisse passato 
come NULL isset fallirebbe :-P e visto che il controllo sugli errori si fa 
*non* dando nulla per assunto ... bhè preferisco essere pleonastico :-)
-- 
<?php echo '     Emiliano Gabrielli (aka AlberT)     ',"\n",
'  socio fondatore e membro del direttivo del GrUSP  ',"\n",
' AlberT_at_SuperAlberT_it   -   www.SuperAlberT.it  ',"\n",
'  IRC:    #php,#AES azzurra.com ',"\n",'ICQ: 158591185'; ?>


More information about the Php-it mailing list