/ Published in: PHP
Expand |
Embed | Plain Text
<?php /* Autor: Piotr Filipek Strona: www.dealis.pl Email: [email protected] Quick making JSON Array with objects :) */ class JSONResponse { public function add($arr){ foreach($arr as $item => $value){ $ret2 = "'".$item."' : '".$value."'"; } } public function getResponse(){ } } ?>
Comments
Subscribe to comments
You need to login to post a comment.

Why can't you just use json_encode($array,TRUE); ?