Revision: 386
Updated Code
at July 12, 2006 12:08 by nicolaspar
Updated Code
define("INT",0,1); define("VARCHAR",1,1); define("TEXT",2,1); #Ejemplos: #echo levantar($_GET["variable"], varchar, 'hola'); #$variable = levantar($_GET["variable"], int, 0 ); function levantar(&$str,$tipo=1,$default='',$upper=0){ $return = ''; if(isset($str)): if($tipo==1): $return = limpiar($str); elseif($tipo==2): $return = limpiarHTML($str); else: $return = intval($str); endif; else: $return = ($tipo==0) ? (is_numeric($default)) ? $default : 0 : $default; endif; return $return; }
Revision: 385
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 12, 2006 12:05 by nicolaspar
Initial Code
define("INT",0,1); define("VARCHAR",1,1); define("TEXT",2,1); function levantar(&$str,$tipo=1,$default='',$upper=0){ # 0 int | 1 str | 2 texto largo #Ejemplos: # echo levantar($_GET["variable"], varchar, 'hola'); # levantar($_GET["variable"], int, 0 ); $return = ''; if(isset($str)): if($tipo==1): $return = limpiar($str); elseif($tipo==2): $return = limpiarHTML($str); else: $return = intval($str); endif; else: $return = ($tipo==0) ? (is_numeric($default)) ? $default : 0 : $default; endif; return $return; }
Initial URL
Initial Description
Initial Title
Php Levantar variables beta 0.1
Initial Tags
php, post
Initial Language
PHP