$a = not( original_greeting("Hello") )

Hi. I am an old-school hobbyist programmer (BASIC, Pascal, Z80ASM, etc) trying to learn a new language.
I won’t need much help on programming concepts (with one exception) but I sure will need help on details.
For example, is the syntax of my Subject line above valid for PHP or is there a better way to code that? ;D

What language is the above?

I’m guessing you want to see if $a is not = to original_greeting(“Hello”);

[PHP]

<?php original_greeting($greeting){ if ($greeting !== 'Hello'){ return false; }else { return true; } } if (!original_greeting('Hello')){ echo "This is not an original greeting"; } ?>

[/PHP]

Sponsor our Newsletter | Privacy Policy | Terms of Service