I am trying to debug a script. I want to have the php code printed to the page, kind of like in perl, I could go:
print "\$variable has this value: $variable";
Does PHP do the same thing?
Also, can I take it and do something like this:
<?PHP
while(include "script.php") {
some how swap the $ of the variables with whatever the escape is like perl's =~ s/\$/\\$/g;
}
?>
I hope I am making this clear, if you don't understand, then please, by all means, ask me 🙂
thanks in advance for any help you can provide.
Richard