Forum Rally Welt

Normale Version: Problem with assign and PHPinfo
Du siehst gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.

I have a quite strange problem with Smarty verified on three different machines with different OS, Web-Server and PHP-Version.I have a framework set up with Smarty and its works great. But when I try to insert the output of "phpinfo" into Smarty it is shown once and then my session is killed. I figured out that it has something to do with string itself.When I replace phpinfo() with something like "echo 'Hello World';" there is no problem. I broke done the output of phpinfo and figured out that the content "Array" was the problem. When I replace the string "Array" before assigning it, it works.But this cannot be the solution. Is there a way to verify/escape a string before assigning it ? I tried the modifiers but that did not help. 

Please help.

I did not find the right solution from the internet.

References: -
Explainer video quote