LoginSignup
0
0

More than 1 year has passed since last update.

【PHP】PHPで配列操作を極めたい

Posted at

コード

<?php
foreach(['a'=>[1,2,3],'b'=>[4,5]] as $key => $array){
    echo $key,'=';
	foreach($array as $n){
        	echo $n;
    }
    echo PHP_EOL;
}

結果

a=123
b=45
0
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0