扫码关注官方订阅号
$data ="realname=lemon&numid=123"怎样转换成$data= array('realname'=>'lemon',numid=>'123',)
欢迎选择我的课程,让我们一起见证您的进步~~
用ajax post到后台的数据直接为数组形式 $.ajax({ type: "POST", url: "some.php", data: "name=John&location=Boston", success: function(msg){
alert( "Data Saved: " + msg );
}});
不用转啊,直接接收就是啊
不用转,直接打印出来print_r($_POST),看到的就是这个格式的数据了
print_r($_POST)
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
用ajax post到后台的数据直接为数组形式
$.ajax({
type: "POST",
url: "some.php",
data: "name=John&location=Boston",
success: function(msg){
}
});
不用转啊,直接接收就是啊
不用转,直接打印出来
print_r($_POST),看到的就是这个格式的数据了