Advanced PHP: eval()
I thought I’d share a handy trick I came across recently. Most people know of the handy Javascript eval(), but PHP has one of its own up its sleeve. My situation involved needing to capture the result of a PHP script for inclusion into content I was rendering in a Smarty plugin. [...]