I need your feedback, as I had a fierce arguement on this and IDK if I'm nitpicking.
An HTML template with the code
`<script>a = <?=$data_json_string ?? []?>;</script>`
I said this is wrong, as this is exploiting/coincidence the fact that `[]` is printed as "Array" and it works normally in JS.
Was I nitpicky on this?
P.S.: This check should not be there at all, but this is another topic.
#php #coding #QuickQuestion