I have an array (mysql datafetch return) and a static string on my html page.
{result}
I defined a function to pass variables to my html page, but in case of the array it fails:
$this->page = str_replace("{".$ident."}", $var, $this->page);
$this->page is the complete content of the html page, fetched via file_get_contents(); any ideas?
$page is just a static html page:
<h1>Test</h1>
{var}