Information Technology Questions and Answers Community

What is the procedure of converting an array into a JSON in PHP?

What is the procedure of converting an array into a JSON in PHP?

PHP         JSON        
Your Answer: 

1 Answers

The json_encode is the process for converting an array into JSON. The following code is helpful in this scenario.

echojson_encode($array_data);

Answered On 27 Feb at 09:32
Edit Account
LOGIN INFORMATION
Change Settings
Email Notifications Notifications will be sent to abcd@gmail.com
Select option for your email notifications:
Mature / News Filter We'll send on email when new jobs are posted
Option 2 for email notification We'll send on email when new jobs are posted