Login   Register  
PHP Classes
elePHPant
Icontem

File: functions.inc

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Herman Veluwenkamp  >  form_template  >  functions.inc  >  Download  
File: functions.inc
Role: ???
Content type: text/plain
Description: Extra functions used by class.
Class: form_template
Form generation and validation class.
Author: By
Last change:
Date: 2000-05-30 19:40
Size: 339 bytes
 

Contents

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;
}
?>