There error is actually on "line 5", which in the case of the extra code and such, "line 5" seems to be:parse error, unexpected '$', expecting '&' or T_VARIABLE
Here is the whole script:function addIt($1) {
Code: Select all
function addIt($1) {
$1 = 0;
if ($1 == 1) {
echo "This would be true";
}
elseif ($1 == 0) {
echo "This would be false";
}
else {
echo "I encountered an error";
}
return $1;
}Code: Select all
<?php addIt(0); ?>