-1
integer value
(기본 키)을 기반으로 세부 정보를 가져올 수 있도록 PHP 배열에서 integer value
을 검색하려면 어떻게해야합니까?PHP 배열에서 값을 검색하려면 어떻게해야합니까?
print_r($myarray);
결과 :
Array
(
[0] => Array
(
[id] => 21785
[customer_id] => 12456 //this is my primary key
[date] => 12-06-2017
)
)
//I am trying to retrieve the ID using something like the code below:
$cust_id = var_dump($myarray[0]['customer_id']);
return cust_id;
or
myfunc(cust_id);
내 문제는 그것이 $cust_id
에 CUSTOMER_ID 정수를 반환하지 않는 점이다
이 내가 배열을 인쇄 할 때 내가 무엇을 얻을 수 있습니다.
이 기능 덕분입니다. –