Information Systems



Strict standards Variable Passing warning on PHP

If you get warning regarding Variable Passing on functions and "strict standards" on PHP, it probably means you have called a function by reference and passed it a value instead of a variable. For instance:

function showPet(&Tpet)
{
echo $pet;
}

showPet("cat")

will give the warning.

$p = "cat";

showPet($p);

will not.