PHP Classes / PHP Array to Javascript

Convert PHP arrays into Javascript objects

PHP Array to Javascript PHP Class

This class can be used to convert PHP associative arrays to Javascript objects that have properties set with the PHP array entries. It traverses the entries of one or more associative arrays recursively and generates code that define Javascript objects. The names of the object properties are the keys of the array entries. The property values are set to the respective array values.

Similar PHP Classes

Search in PHP Classes

Filter by tags