Php Pass Variable To Inline Function Python Syntax If Else Statement