This is my $var
from json_encode
:
{
"key1":"\u0000data1",
"key2":"\u0000data2",
"key3":"\u0000data3",
"key4":"\u0000data4
}
I would like to do this:
echo json_encode(str_replace ("\\u0000", "", $var));
in order to get rid of the preceding \u0000
that's showing up, the line above doesn't work to strip it.