may sample idol ?
kahit picture lang
{"status":"success","response":{"order_id":"647796931","reference_id":"647796931","imei":"359508624125539","message":"Result passed","result":"Model : IPHONE 13 PRO MAX GPH 256GB ATT-USA<br />IMEI : 359508624125539<br />IMEI 2 : 359508624167523<br />Serial Number : R9C4TM4F3Y<br />"}}
kukunin lang ung result ng imei2/serial number as in ung mga Number lang tapos gagawa ng sariling function ($imei2 / $serial). May code na sana ako kaso sa ibsng file yon tinatry ko gamitin kaso ayaw gumana
eto yung code
function Json_Conversion($data,$checkmode=0){
if($checkmode==0){
if($data && $arrData = json_decode($data,true)){
if( isset($arrData['status']) && $arrData['status'] == 'success' && isset($arrData['response']) && isset($arrData['response']['result'])){
$result = $arrData['response']['result'];
if (substr_count($result[0], "<br>")>0) {
$str="<br>";
}elseif(substr_count($result[0], "<br/>")>0){
$str="<br/>";
}else{
$str="<br />";
}
$arrResult =explode($str,$result);
$fileds = ['Model'=>'model','IMEI'=>'imei','IMEI 2'=>'imei2','Serial Number'=>'sn'];
$arrReturn = [];
$arrResult1 = explode(':',$arrResult[0]);
foreach ($arrResult as $k => $v) {
if(!$v)continue;
$arrV = explode(':',$v);
$key = trim($arrV[0]);
$arrReturn[$fileds[$key]] = $arrV[1];
}
if(!isset($arrReturn['imei2']) || $arrReturn['imei2'] ==''){$arrReturn['imei2']="";}
return $arrReturn;
}
}
}else{
if (substr_count($apir, "IMEI2")>0) {
preg_match('/IMEI2

[\s\S]*)/', $apir, $matches);
if (strpos($matches[1], "<br")){
$imei2 = substr($matches[1],0,strpos($matches[1], "<br"));
}else{
$imei2 = $matches[1];
echo $imei2;
}
preg_match('/IMEI

[\s\S]*)/', $apir, $matches);
if (strpos($matches[1], "<br")){
$imei = substr($matches[1],0,strpos($matches[1], "<br"));
}else{
$imei = $matches[1];
}
preg_match('/SerialNumber

[\s\S]*)/', $apir, $matches);
if (strpos($matches[1], "<br")){
$sn = substr($matches[1],0,strpos($matches[1], "<br"));
}else{
$sn = $matches[1];
}
}else{
$imei2 = "";
preg_match('/IMEI

[\s\S]*)/', $apir, $matches);
if (strpos($matches[1], "<br")){
$imei = substr($matches[1],0,strpos($matches[1], "<br"));
}else{
$imei = $matches[1];
}
preg_match('/SN

[\s\S]*)/', $apir, $matches);
if (strpos($matches[1], "<br")){
$sn = substr($matches[1],0,strpos($matches[1], "<br"));
}else{
$sn = $matches[1];
}