I have some code that parses through an html file and I stumbled across a page that contains this charcter which screwed up the parsing: “
When I execute the following code, $len is assigned a value of 3.
$test = "“";
$len = strlen($test);
I'm suspecting that this character might be unicode.
For now I'm getting around this problem by replacing the curly double quote with a standard double quote. However I'm concerned about other files that might contain similar characters and I don't want to have replace functions for each separate instance.
How do I get php to treat this as a single character?