php db file flusers1 txt count count db for count arr explode substr d

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
<?php
$db = file("./flusers1.txt");
$count = count($db);
for( $i = 0; $i < $count; $i++ )
{
$arr = explode(" - ", substr($db[$i], 0, -1), 3);
$arr[2] = explode("+", $arr[2]);
$array[$i] = array(
'nickname' => $arr[0],
'mail' => $arr[1],
'name' => substr($arr[2][0], 0, -3),
'number' => "+".$arr[2][1]
);
}
?>