php-helpers
By: fruffl | Date: Feb 17 2010 15:42 | Format: PHP | Expires: never | Size: 449 B | Hits: 995
- <?php
- function is_ip($ip, $x = '(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)')
- function is(&$var)
- function is_or(&$var, $default = NULL)
- {return ((is($var))? $var : $default);}
- function is_true(&$var1, &$var2 = TRUE)
- {return ((is($var1) && is($var2) && $var1 === $var2) ? TRUE : FALSE);}
Latest pastes
1 hours ago
11 hours ago
1 days ago
2 days ago
2 days ago