I want to be able to decode in php json like this {"a":"<3"}, but always return null:
echo "1:".json_encode(json_decode ('{"a":"<3"}')).PHP_EOL; echo "2:".json_encode(json_decode ('{"a":"<\3"}')).PHP_EOL; echo "3:".json_encode(json_decode ("{"a":"<\3"}")).PHP_EOL;
http://sandbox.onlinephpfunctions.com/code/968e88db151074f3d4632d7b89a57530d729a5ad
what I have to do to decode that json?
1.4m articles
1.4m replys
5 comments
57.0k users