Given the following code:
if (is_valid($string) && up_to_length($string) && file_exists($file))
{
......
}
If is_valid($string)
returns false
, does the php interpreter still check later conditions, like up_to_length($string)
?
If so, then why does it do extra work when it doesn't have to?