Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.1

Bug #1096 about '$"
Submitted: 2004-03-30 13:03 UTC
From: stan at china dot com Assigned:
Status: Bogus Package: HTML_Template_IT
PHP Version: 4.3.4 OS: apache+windowsXP
Roadmaps: (Not assigned)    
Subscription  


 [2004-03-30 13:03 UTC] stan at china dot com
Description: ------------ code: ... $var1 = "$test"; $var2 = "$1234"; $arr = array("var1"=>$var1,"var2"=>$var2); $tpl->setVariable($arr); ... result: ... test,34 I have tried the lastest version, same result.. Now I have to use: $var = str_replace("\$","\\$",$var)

Comments

 [2004-04-06 18:48 UTC] mike
Thank you for taking the time to write to us, but this is not a bug. You should use single quotes (') if you don't want PHP to parse string contents.