PHP Classes


Recommend this page to a friend!
  Classes of Herman Veluwenkamp  >  form_template  >  >  Download  
Role: ???
Content type: text/plain
Description: Extra functions used by class.
Class: form_template
Form generation and validation class.
Author: By
Last change:
Date: 22 years ago
Size: 339 bytes


Class file image 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;
For more information send a message to info at phpclasses dot org.