i tried doing this: $update = "\$entry[$num] = \"something<a href=\"example\">hello</a>\";"; the only problem i have is that it doesn't keep the \'s before the "'s. I need that, else there is an error, is there a way to avoid this?
escape the escape character:
\
i'm not sure which ones you are trying to escape from the code
i was thinking of doing that, but wouldn't php interpret that as a comment?
no
//a comment is two forward slashes
two backward slashes \\ will print a single backward slash \