PHP Lib IS

© Christian Paulus - Document créé le 2001-01-01, mis à jour le 2008-12-11

L'éternité c'est long, surtout vers la fin.Woody Allen

Fonctions PHP IS: fonctions de comparaison et de validation de variables.

Une fonction IS renvoie en général un TRUE pour confirmer la valeur proposée, ou un FALSE dans le cas inverse. Quoi de plus simple ?


kzo_is_cctld(), confirms whether string is TLD country code or not. Return country name or FALSE.
@version 1.0, 08/06/2002
@param $code target code
@return Country name or FALSE if $code is not country code.
@since PHP3
kzo_is_codepostal(), valid french postal code
@version 1.0, 08/06/2002
@param $code string to valid
@return TRUE if OK. FALSE otherwise
@since PHP3
kzo_is_gtld(), confirms whether string is generic TLD or not. Return generic name or FALSE.
@version 1.0, 08/06/2002
@param $code target code
@return Generic name or organization. Return FALSE if $code is not a gtld.
@since PHP3
kzo_is_ipaddress(), valid IP (Internet Protocol) address
@version 1.0, 08/06/2002
@param $ipaddress to control
@return TRUE if OK. FALSE otherwise
@since PHP3
kzo_is_number(), tells whether string contains only figures or not
@version 1.0, 07/06/2002
@param $string target string
@return TRUE if OK. FALSE otherwise
@since PHP3
kzo_is_string_with_space(), tells whether string contains space
@version 1.0, 07/06/2002
@param $string target string
@return TRUE if OK. FALSE otherwise
@since PHP3
kzo_is_zipcode(), valid zip (Zone Improvement Plan) code
@version 1.0, 08/06/2002
@param $code string to valid
@return TRUE if OK. FALSE otherwise
@since PHP3
kzo_is_emailaddress(), control email adress
@version 1.0, 07/06/2002
@version 1.2, 08/06/2002
@version 1.3, 28/06/2005
@param $address e-mail address
@return correct address if OK. FALSE otherwise
@since PHP3

Autres fonctions disponibles dans la librairie PHP sur Quesaco :