I'm not a total newbie, but this does sound like a newbie question.
I'm making a script that formats my ugly php and html into the nice, tabbed in, etc, kind. Just recently I learned that it is easier to use:
echo '
instead of:
echo "
so I dont have to escape all of the quotes in my html. However, variables dont work correctly this way, so if I want to use a variable inside an echo statement, i have to change it from:
$var
to:
'.$var.'
.... is that correct?
So, my question is, I want to use ereg_replace in my aforementioned script change it, but i dont know how..
Can anyone help?
Thanks,
Wally-o