PHP Developers Network
http://forums.devnetwork.net/

Passing a PHP array to JavaScript
http://forums.devnetwork.net/viewtopic.php?f=13&t=145790
Page 1 of 1

Author:  berkayxx95 [ Fri Jan 26, 2018 6:30 pm ]
Post subject:  Passing a PHP array to JavaScript

Hello, I am trying to pass a JavaScript array to PHP. Is there a basic way to do it without going into other languages?

Author:  Celauran [ Sat Jan 27, 2018 9:04 am ]
Post subject:  Re: Passing a PHP array to JavaScript

Send it in as an AJAX request and then use json_decode

Author:  Zulfi [ Tue Apr 17, 2018 6:01 am ]
Post subject:  Re: Passing a PHP array to JavaScript

o convert your PHP array into JSON, you can use the json_encode function, which will return the JSON representation of the value that you have passed it

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/