php : is this if condition correct?
Posted
by phill
on Stack Overflow
See other posts from Stack Overflow
or by phill
Published on 2010-03-30T21:03:50Z
Indexed on
2010/03/30
21:13 UTC
Read the original article
Hit count: 286
php
I have the following if condition statement
if ( (strlen($data[70])>0) || ( (remove19((trim($data[29])) == '7135556666')) && isLongDistance($data[8])) )
where $data is a recordset from a database.
My goal is to include all rows where $data[70] isn't blank, and also include rows where $data[29] = 713555666 && $data[8] isLongDistance = TRUE
My question is, if isLongDistance($data[8]) returns false, will it still return the row since $data[70] is not blank?
thanks in advance
© Stack Overflow or respective owner