Php Pass Variable To Inline Function Python Syntax Error