PHP Return Function Response to Variable rather than Print or Echo it

Reply to comment

If you're getting "Parse error: syntax error, unexpected T_FUNCTION", then use a newer version of PHP (>= PHP 5.3.0) or use create_function().