Skip to content
Advertisement

Why array content from php is not inputing to array in js?

I have a little problem, the point is that my array is not getting content.

JavaScript
JavaScript

And i have this error: Unexpected end of JSON input

Just i want array $staff place into staff in js.

Advertisement

Answer

You should use

JavaScript

before sending your JSON from server to client. Then the error will be gone.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement