If PHP is interpreted language(every line is executed as it is reached), how come it throws errors if the error occurs inside a function which is never executed?
Or may be I don't get what interpreted means?
For e.g
<?php
$number = 1;
function square(){
$foo = 1 //missing semicolon, throws error
}
echo $number;
?>