Re: Array within array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2005-09-30 at 15:33, Emil Novak wrote:
> <?php
> $array_file = file("path/to/file");
> foreach($array_file as $line)
> {
> 	$e_array = explode(',',$line);
> 	{
> 		// do update on db for each line of array
> 	}
> }
> ?>
> 
> Like this?

Hi Emil,

That`s exactly how I figured it out eventually....sometimes you just
need to step away from the monitor and take a break before the answer
slaps you on the forehead... :)

Thanks

--
Chris Blake 
Cell: 082 775 1492
Work: +27 11 880 2825
Fax : +27 11 782 0841
Mail: chris@xxxxxxxxxxxx

"If a camel flies, no one laughs if it doesn't get very far." -- Paul
White

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux