How to use php logical operator with multi selection -


how use php logical operators multi-selection?

here simple html dom parse, want stuff, if html content not include div.title, , not include div.content, , not include div.description. (there no 3 class type div, process something).

but did this, not work, still can include 1 type of div class. need help. thanks.

if ($html->find("div[class=title]") == ''      && $html->find("div[class=content]") == ''      && $html->find("div[class=description]") == '') {   // stuff working } 

update well, have solved myself. wrong empty judge. close question, all.

if ((!$html->find("div[class=title]"))    && (!$html->find("div[class=content]"))    && (!$html->find("div[class=description]"))) {   // stuff working } 

i have solved myself. wrong empty judge processing.

if ((!$html->find("div[class=title]"))       && (!$html->find("div[class=content]"))       && (!$html->find("div[class=description]"))) {      // stuff working  }  

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -