<?php
function exemplo($a, $b) {
if ($a > $b) {
return "a é maior que b";
} elseif ($a == $b) {
return "a é igual a b";
} else {
return "a é menor que b";
}
}
echo (exemplo(18, 8)) . "\n";
echo (exemplo(14, 14)) . "\n";
echo (exemplo(5, 45)) . "\n";
PD9waHAKCmZ1bmN0aW9uIGV4ZW1wbG8oJGEsICRiKSB7CglpZiAoJGEgPiAkYikgewoJICAgIHJldHVybiAiYSDDqSBtYWlvciBxdWUgYiI7Cgl9IGVsc2VpZiAoJGEgPT0gJGIpIHsKCSAgICByZXR1cm4gImEgw6kgaWd1YWwgYSBiIjsKCX0gZWxzZSB7CgkgICAgcmV0dXJuICJhIMOpIG1lbm9yIHF1ZSBiIjsKCX0KfQoKZWNobyAoZXhlbXBsbygxOCwgOCkpIC4gIlxuIjsKZWNobyAoZXhlbXBsbygxNCwgMTQpKSAuICJcbiI7CmVjaG8gKGV4ZW1wbG8oNSwgNDUpKSAuICJcbiI7Cg==