Converting an PHP array to JSON in PHP is quite easy and useful. These days while creating API’s almost everyone is using JSON. Also while showing data from database we use to get it in JSON format these days. JSON is accessible in PHP as well as Javascript or Jquery and other languages also. JSON […]
Tag: Array
Get Last 7 Dates in Array Using PHP
While working over some project where i have to show the data in Chart according to the last 7 days. I was stuck over to get the last 7 dates for further working. So here i am writing the function through which i got the last 7 Dates in Array using PHP. In this i […]