Answers for "php if statement generator"

PHP
2

php if short form

<?php echo ($qte > 0) ? $qte : 0; ?>
Posted by: Guest on November-14-2020
0

php else

<?php
if ($a > $b) {
  echo "a is greater than b";
} else {
  echo "a is NOT greater than b";
}
?>
Posted by: Guest on April-23-2020

Browse Popular Code Answers by Language