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 ["hello","word"]
|
what is [ 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
|
|
Posting in progress.
Please wait...
|