php-helpers
By: fruffl | Date: Feb 17 2010 15:42 | Format: PHP | Expires: never | Size: 449 B | Hits: 982
- <?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
18 hours ago
1 days ago
1 days ago
1 days ago
2 days ago