Jump to content
php.lv forumi

explode iekš explode


p4F

Recommended Posts

$file_handle = fopen("accept.txt", "rb");
while (!feof($file_handle) ) {

$line_of_text = fgets($file_handle);
$parts = explode('\n', $line_of_text);
$show = explode('|*|', $parts[0]);
echo '<tr><td>'.$show[4].' '.$show[0].'</td></tr>';
}
fclose($file_handle);

kā būtu pareizi jāraksta lai nerādītu šadu kļūdu

Notice: Undefined offset: 4 in E:\AppServ\www\design\admin.php on line 60

Link to comment
Share on other sites

×
×
  • Create New...