why does this evaluate to true
Posted
by timpone
on Stack Overflow
See other posts from Stack Overflow
or by timpone
Published on 2010-05-24T23:25:12Z
Indexed on
2010/05/24
23:31 UTC
Read the original article
Hit count: 172
php
Whey does this evaluate to true?
<?php
$val2=0;
//outputs that is an error123
if($val2=='error123'){
echo 'that is an error123<br />';
}else{
echo 'that is not an error123<br />';
}
© Stack Overflow or respective owner