What would be the equivalent PHP array structure to create an object with identical properties:
For example... create the object 'columns' below in PHP using json_encode:
jQuery('#example').dataTable( {
"ajaxSource": "sources/objects.txt",
"columns": [
{ "data": "engine" },
{ "data": "browser" },
{ "data": "platform" },
{ "data": "version" },
{ "data": "grade" }
]
} );
(I am trying to build a dynamic datatable and define the columns in the source JSON.
json_decode(YOUR_JSON);?