Recommend this page to a friend! | Stumble It! | Bookmark in del.icio.us |
Classes of Herman Veluwenkamp | > | form_template | > | functions.inc | > | Download | ||
|
Download |
<? function set_var(&$variable, $value, $default) { if (!@is_empty($value)) $variable = $value; else if (isset($default)) $variable = $default; else unset($variable); } function is_empty($variable) { $test = is_array($variable) ? implode('', $variable) : $variable; if (empty($test)) return true; else return false; } ?> |