Change a variable to
0This simple function checks the name of a variable and if it is a certain value changes it, else it will return the original value.
function change_name($orignal, $if_name, $change_to) {
if (strtolower($orignal) == strtolower($if_name)){ return $change_to;}
else { return $orignal; }
}Tags: Php, change name of variable
