Jump to content

[SOLVED] what IF???


adrumsolo4u

Recommended Posts

i am trying to write a simple "if" function, which would work fine in C++ but php doesn't like it much

if ((empty($sub1)) || ($sub0 = home)) {
    echo '
            some text';
  }

 

what i want this to do is

IF ((sub1 is empty) OR (sub0 = home))

echo '

this stuff

';

 

i know this should work, have i made any errors?

Link to comment
https://forums.phpfreaks.com/topic/40214-solved-what-if/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.