Diferencia entre revisiones de «Usuario:Lmorillas/desarrollo web servidor/php/comprobacion datos»

De WikiEducator
Saltar a: navegación, buscar
Línea 39: Línea 39:
 
== funciones filter ==
 
== funciones filter ==
 
   filter_var($valor [, $filtro [, $opciones]])
 
   filter_var($valor [, $filtro [, $opciones]])
 +
 +
== Ejemplos expresiones regulares ==
 +
* http://www.noupe.com/php/php-regular-expressions.html
 +
* http://www.catswhocode.com/blog/15-php-regular-expressions-for-web-developers
  
 
{{Actividad|
 
{{Actividad|

Revisión de 22:36 14 ene 2014




funciones is_

 function_exists()
 isset($valor)
 is_null($valor)
 is_bool($valor)
 is_numeric($valor)
 is_int($valor)
 is_float($valor)
 is_string($valor)
 is_scalar($valor)
 is_array($valor)
 is_callable($valor)
 is_object($valor)
 is_resource($valor)

funciones ctype

ctype_alnum($valor)
ctype_alpha($valor)
ctype_cntrl($valor)
ctype_digit($valor)
ctype_graph($valor)
ctype_lower($valor)
ctype_print($valor)
ctype_punct($valor)
ctype_space($valor)
ctype_upper($valor)
ctype_xdigit($cvalor)

funciones filter

 filter_var($valor [, $filtro [, $opciones]])

Ejemplos expresiones regulares



Icon activity.jpg

Actividad





Captura y manipulación de datos

 strip_tags($cadena)
 trim($cadena)
 htmlspecialchars()