Skip to content
Advertisement

PHP json_encode encode a function

How to encode a Javascript function in PHP? I want to encode the callback function with array

JavaScript

equivalent ini Javascript:

JavaScript

I know my PHP code is wrong, how can I fix it?

Advertisement

Answer

Viola i solved my problem with Zend_JSON encoder

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement