Hello i'm having this variable which is string.
$this->product_output_html = <<< HTML
Some HTML Code
HTML;
I want int he class test to add a php for loop like this one
if ($admin->errors) { foreach ($admin->errors as $error) { echo ''.$error.''; } }
i have tried to add but is not working. i added '' after the class="test"> and before the of the test but still is not working. what i'm doing wrong?
thanks a lot