I'm not quite sure I understand it either, though this does execute phpinfo.
$variable = "{${phpinfo()}}";
echo "$variable is fish";
I feel I've missed the point.