PHPで連想配列のキーを取得する方法
array_keys関数を使用する方法:$array = array("key1" => "value1", "key2" => "value2", "key3" => "value3"); $keys = array_keys($array); foreach ($keys as $key) { echo $key . "<br>"; }>>More
array_keys関数を使用する方法:$array = array("key1" => "value1", "key2" => "value2", "key3" => "value3"); $keys = array_keys($array); foreach ($keys as $key) { echo $key . "<br>"; }>>More