Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,
Here is the VBScript I want to convert to PHP:

Dim buffer = New String("")
buffer = buffer &("<Section name=""GLOBAL"" >" )


I know double double quotes are to escape so I tried backslash in PHP instead of double double quotes.

$buffer .= '("<Section name=\"GLOBAL\" >" )';


The PHP output is : ("" )

Please help. Thanks everyone !
Posted
Updated 13-Jan-15 5:29am
v3

It's because your output is being parsed. It's html after all. This is what you are looking for:
http://php.net/manual/en/function.htmlentities.php[^]
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900