TinyButStrong - the PHP Template Engine
Categories > TinyButStrong general >

how json_encode to array

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs

By: thuc101
Date: 2013-01-15
Time: 07:29

how json_encode to array

php file
    $ar=array('hello','word');
    $ar_str=json_encode($ar);

htm file
<script>
    $(document).ready(function(){
       var x='[onshow.ar_str;htmlconv=no]';
       alert(x);
    });
</script>
and recieve               &#91;"hello","word"]
what is &#91; and how to pix ?
thank!!!
By: thuc101
Date: 2013-01-15
Time: 09:44

Re: how json_encode to array

hello, I am find
protect=no
thank to tinybutstrong