「PHP Programming/Files」の版間の差分

ナビゲーションに移動 検索に移動
wrong case for 'k' in code
(Use lowercase variable and function names for consistency throughout the book and usual conventions)
(wrong case for 'k' in code)
$lines = file('data.txt');
foreach($lines as $Key => $line) {
$lineNum = $keyKey + 1;
echo "Line $lineNum: $line";
}
匿名利用者

案内メニュー