I would like to know what variables I have used, so that I know correct assignments have been made, and a value has not been passed to a variable which will not be used again because I made a typo mistake, and the value is lost, and when the correct variable is used it has the wrong value.
For example, I might have made a typo in a variable name within an if clause, and the script works fine except bizzare circumstances when the if clause is used and something goes wrong, like validating all credit card numbers no matter what was inputted.
Code: Select all
<?php
$variable = 10;
if ($variable > 5)
{
$Variable = $variable / 2;
}
else
{
$variable = $variable * 2;
}
print($variable);
?>Any ideas?