#native_company# #native_desc#
#native_cta#

Validate variable

By Radford Smith II
on July 14, 2002

Version: 1.0

Type: Function

Category: Other

License: GNU General Public License

Description: A simple, but useful function that sets a variable to a value if the expression given is false.

function validVar($ex, &$var, $default) {
	if (!$ex) {
		$var = $default;
	}
}