How do you use the PHP logical operators with multi-selection?
Here is some simple html dom parse, I want to do some stuff, if the html content not include div.title, and not include div.content, and not include div.description. (there were no three class type div, then process something).
But what I did like this, not work, still can do something include one type of div class. Need a help. Thanks.
if ($html->find("div[class=title]") == ''
&& $html->find("div[class=content]") == ''
&& $html->find("div[class=description]") == '') {
// stuff working
}
UPDATE
well, I have solved it by myself. wrong with empty judge. close the question, thanks to all.
if ((!$html->find("div[class=title]"))
&& (!$html->find("div[class=content]"))
&& (!$html->find("div[class=description]"))) {
// stuff working
}
I have solved it by myself. wrong with the empty judge processing.