PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Tue Jun 19, 2018 11:41 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Jan 26, 2018 6:30 pm 
Offline
Forum Newbie

Joined: Fri Jan 26, 2018 6:23 pm
Posts: 1
Hello, I am trying to pass a JavaScript array to PHP. Is there a basic way to do it without going into other languages?


Top
 Profile  
 
PostPosted: Sat Jan 27, 2018 9:04 am 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6424
Location: Montreal, Canada
Send it in as an AJAX request and then use json_decode

_________________
Supported PHP versions No longer supported versions


Top
 Profile  
 
PostPosted: Tue Apr 17, 2018 6:01 am 
Offline
Forum Newbie

Joined: Tue Apr 17, 2018 4:35 am
Posts: 2
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group