Hi, In this tutorial, I am going to explain, How to convert the PHP Array to JSON String.
If you want to convert the PHP Array to JSON String use the json_encode().It will convert the PHP Array to JSON String.
Syntax: json_encode($array, Constant1 | Constant2 .... | Constantn);
How to log out a user after 10 minutes of inactivity on the site
Consider...
