gpt4 book ai didi

php - 我想要以下结果 : $name = 'Doron' ; $email = 'doron@myemail.com' ; $phone = '0501234567' ;

转载 作者:可可西里 更新时间:2023-10-31 23:27:00 26 4
gpt4 key购买 nike

<分区>

我想从我的 JSON 中提取以下数据:

$name = 'Doron';
$email = 'doron@myemail.com';
$phone = '0501234567';

它是一个多维数组。电子邮件有一个键type:email,电话有type:tel,名字有id:name

$myJson = '[
{
"name":
{"id":"name","type":"text","title":"","value":"Doron","raw_value":"Doron", "required":"0"}
,
"email":
{"id":"email","type":"email","title":"","value":"doron@myemail.com", "raw_value":"doron@myemail.com","required":"1"},
"4729ed5":
{"id":"4729ed5","type":"tel","title":"","value":"0501234567", "raw_value":"0501234567","required":"0"}
}]';

// Convert JSON string to Array
$FieldsArray = json_decode($myJson, true);

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com