어떻게 다른 이름으로 루프 $의 _POST 변수 인 print_r에서이 출력 :
게시물 :
$_POST['post_access_1'];
$_POST['post_access_2'];
$_POST['post_access_3'];
$_POST['post_access_4'];
Array
(
[post_access_1] = Array
(
[0] = 1
[1] = 6
)
[post_access_2] = Array
(
[0] = 1
[1] = 4
)
[post_access_3] = Array
(
[0] = 2
[1] = 5
[2] = 6
)
[post_access_4] = Array
(
[0] = 2
[1] = 5
)
)
어디
1 => 1,6
2 => 1,4
3 => 2,5,6
4 => 2,5
내가 검색을 다른 이름으로 볼 수는 있지만 아니요. foreach
와
여기에 어떤 질문이 있습니까? 뭘 원해? 목표 달성을 위해 무엇을 시도 했습니까? –
foreach ($ post를 $ postKey => $ postValue) { echo "$ postKey = $ postValue \ n"; } – nonsensei
배열에서 var_export()를 사용하고 질문을 업데이트하십시오. –