Jump to content

PHP if and


DanielWhite

Recommended Posts

If I have the following code:

 

<?php
if ($a > $b) {
    echo "a is bigger than b";
} elseif ($a == $b) {
    echo "a is equal to b";
} else {
    echo "a is smaller than b";
}
?>

 

How can I make it so it is something like this: $a > $b AND $c = 5

 

Thank you,

Daniel White

Link to comment
https://forums.phpfreaks.com/topic/100458-php-if-and/
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.