Hello, I am trying to make a array in php that looks like this:
$array= array("test"2"", "'test"2"'");
Of course this doesn't work because of the two strings, but is there a way in php to get is to ignore all quotes in such a string so it sees it as a valid string? The problem being that I need the quotes in my string and it are double quotes and single quotes.
EDIT: Thanks for the quick response! I was wondering if there is a way of doing this with code? I have a huge string to do this with?
$array= array("test\"2\"", "'test\"2\"'");