Ok I am still having trouble grouping the entire array properly, its still splitting it up by row:
Array
(
[0] => Array
(
[0] => GATE
[1] => The Gate
[2] => voodoo://chat.fearlab.net=GATE
[3] => 0
[4] => 250
[5] => 0
[6] => GEN
)
)
Array
(
[1] => Array
(
[0] => POTTER
[1] => harry potter net
[2] => voodoo://chat.fearlab.net=POTTER
[3] => 0
[4] => 30
[5] => 0
[6] => GEN
)
)
I need it to do this:
Array
(
[0] => Array
(
[0] => GATE
[1] => The Gate
[2] => voodoo://chat.fearlab.net=GATE
[3] => 0
[4] => 250
[5] => 0
[6] => GEN
)
[1] => Array
(
[0] => POTTER
[1] => harry potter net
[2] => voodoo://chat.fearlab.net=POTTER
[3] => 0
[4] => 30
[5] => 0
[6] => GEN
)
)
here is the new coding:
<?
$readfile = file("../../voodoo/rooms.txt");
foreach ($readfile as $k => $v ) {
$readfile = array($readfile[$v][$k] = split("\t", $v));
echo "<pre>";
print_r($readfile);
echo "</pre>";
}
?>