I need to pass an array as a function argument from php to js.I need a way to pass them to the function.Can anyone please help me with this. Thanks a lot..
Take the 2-minute tour
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
|
put on hold as off-topic by Alessandro Minoccheri, Mr. Alien, KooiInc, Suresh Kamrushi, Quentin 2 days ago
This question appears to be off-topic. The users who voted to close gave these specific reasons:
- "Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist" – Alessandro Minoccheri, Suresh Kamrushi, Quentin
- "Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance." – Mr. Alien, KooiInc
Convert your PHP array to JS Object (in JSON).
| |||||||||||||||||||||
|