$data ="realname=lemon&numid=123"
How to convert to
$data= array('realname'=>'lemon'
,numid=>'123',)< /p>
黄舟2017-05-16 13:03:19
Use ajax to post data to the background directly in the form of array
$.ajax({
type: "POST",
url: "some.php",
data: "name=John&location=Boston",
success: function( msg){
1 |
|
}
});
过去多啦不再A梦2017-05-16 13:03:19
No need to convert, just print it outprint_r($_POST)
. What you see is the data in this format