SyntaxFix
Write A Post
Hire A Developer
Questions
Another suggestion from me :)
function isJson(string $string) { return ($result = json_decode($string, true)) ? $result : $string; }