PHPでテキストファイルの読み込み

サンプルコード:

$content = file_get_contents('startnews24_test.txt’);
$arr = explode(“\r\n", $content);
$s = “";
for($i=0;$i
$items = explode(“.", $arr[$i]);
for($j=0;$j
$s .= $items[$j]*10;
if($j != count($items)-1) $s .= '.’;
}
$s .= “\r\n";
}
file_put_contents('startnews24_info.txt’,$s);

Development

Posted by arkgame