0
내가 PHP에서의 배열의 배열 (대한 동안 등 ...)를 반복 루프를 사용 싶어 :이 작동하지 않습니다어떻게 배열 (PHP)의 배열에 루프를 사용할 수 있습니까?
for($x = 0; $x < $arrlength; $x++) {
$poets = array(
'keyboard' => array(
array($saves[$x]) // this is just one array i don't want this !
),
);
$url= "https://api.telegram.org/bot".$token."/sendMessage?
chat_id=".$chat_id."&text=".$text."&reply_markup=".$jsonPoets;
file_get_contents($url);
}
, 내가 같이 할 싶어 :
for($x = 0; $x < $arrlength; $x++) {
$poets = array(
'keyboard' => array(
//i wanna do like this ...
array($saves[$x])
//array($saves[$x])
//array($saves[$x])
.
.
.
)
);
$url= "https://api.telegram.org/bot".$token."/sendMessage?
chat_id=".$chat_id."&text=".$text."&reply_markup=".$jsonPoets;
file_get_contents($url);
}
그것은 루프 반복과 배열에 다중 배열을 만들고 싶어 의미합니다.
예 내 문제가 도움을 주셔서 감사합니다 :) –