Does anyone know of a better way to quote strings, without having to escape charachters? (this is PHP) I.e.
$var = "something but \" need to be escaped...which is a pain";
and
$var = <<<HTML
Again, here I can use " without a problem, but I have to make sure the ending quote for this script does NOT have any leading spaces, otherwise I get a parse error!
HTML;
Is there any better way to do this?
Thanks
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
$var = "something but \" need to be escaped...which is a pain";
and
$var = <<<HTML
Again, here I can use " without a problem, but I have to make sure the ending quote for this script does NOT have any leading spaces, otherwise I get a parse error!
HTML;
Is there any better way to do this?
Thanks
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates

