|
||||||
|
|
JS Rip
When working on my PHP-based Role Playing Game, I had designed a good portion of the game to operate client side using JavaScript. The problem was that I had to coerce a PHP data structure into a JavaScript friendly format so the two could remian synchronized. My solution to this was the development of the first set functions that could convert PHP data into anonymous JavaScript data structures. About a year and a half later, I began working on JavaScript that needed to pass its data structures back to a PHP server. My solution entailed having the JavaScript convert its data into the same format that this library uses to convert PHP data into JavaScript, so making functions to convert from JavaScript to PHP was the only natural thing to do. This library now serves as a conversion library between PHP and JavaScript data and copes with the transfer of numeric and associative arrays and objects. Directions for use are provided in the directions.txt file. It is licensed for use under the GNU General Public License, which a copy of is included in the download. If you have questions, problems, or want to help develop, please email me at mwilmes@wilminator.com. DownloadVersion 1.0.2 Released 2005-08-12I discovered a bug that does not properly convert empty array and object braces from Javascript into PHP data. This release fixes that error.
| |||||