Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Perl では、次の方法でループの現在の変数を参照できます。$_
$_
例えば:
my @array = (1,2,3,4); foreach(@array) { print $_." "; }
印刷します:
1 2 3 4
これに相当するphpはありますか?
foreach ($array as $value) { echo $value . ' '; }
http://php.net/foreach