- 644 名前:nobodyさん [2009/01/31(土) 20:31:10 ID:lgngjuqH]
- <?php
$temp = "epg.2ch.net/tv2chwiki/subject.txt"; $html_f=file_get_contents($temp); $br = "<br />"; $replace = "(2)"; $word = str_replace($replace, $br, $html_f); $replace = ".dat<>"; $word = str_replace($replace, $br, $word); $replace = "res/min"; $word = str_replace($replace, $br, $word); $replace = "] "; $word = str_replace($replace, $br, $word); $a = explode( "<br />", $word ); $b[0]= "g"; print $a[2]; print $br; //…(1) print $b[0]; print $br; $strs[0] = "srename :"+ $a[2] +",";//…(2) $strs[1] = $b[0]; print $strs[0]; print $br;//…(3) print $strs[1]; ?> 出力 [NHK総合]探検ロマン世界遺産 g 0 g (3)の$strs[0] が0になってしまうのはなんでですか? おねがいします。
|

|