Re: [PHP] array within array

2007-02-12 Thread Jim Lucas
rinted correctly - but my echoing of array items is not The stuff in bold SHOULD be on a new line ... Can you take a look and offer me more advice? S -Original Message- From: Jim Lucas [mailto:[EMAIL PROTECTED] Sent: 09 February 2007 09:56 AM To: Steven Macintyre Subject: Re: [PHP] arr

Re: [PHP] array within array

2007-02-09 Thread Németh Zoltán
On p, 2007-02-09 at 10:10 +0100, Németh Zoltán wrote: > On p, 2007-02-09 at 09:24 +0200, Steven Macintyre wrote: > > Hi all, > > > > I have an array ($articles) that contains content in this format > > > > Text > > More text > > > > I am currently calling the creation of the array as such; > >

Re: [PHP] array within array

2007-02-09 Thread Németh Zoltán
On p, 2007-02-09 at 09:24 +0200, Steven Macintyre wrote: > Hi all, > > I have an array ($articles) that contains content in this format > > Text > More text > > I am currently calling the creation of the array as such; > > $articles = split("Section break", $mystring); <-- this works > > NOW .

Re: [PHP] array within array

2007-02-08 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-09 09:24:01 +0200: > I am currently calling the creation of the array as such; > > $articles = split("Section break", $mystring); <-- this works > > NOW ... I need to split each item in the articles array into its own array > (newsarray) > > I have tried > > Forea

[PHP] array within array

2007-02-08 Thread Steven Macintyre
Hi all, I have an array ($articles) that contains content in this format Text More text I am currently calling the creation of the array as such; $articles = split("Section break", $mystring); <-- this works NOW ... I need to split each item in the articles array into its own array (newsarray)

Re: [PHP] Array within array

2005-09-30 Thread Chris Blake
On Fri, 2005-09-30 at 15:33, Emil Novak wrote: > $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 fig

Re: [PHP] Array within array

2005-09-30 Thread Emil Novak
Like this? Emil Novak, Slovenia, EU -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Array within array

2005-09-30 Thread Chris
Greetings PHP community, I have a CSV text file which I need to use to update existing DB records. So I have the following : $array_file = file("path/to/file"); file() creates an array comprising each line of the file, but if each line contains 20 or so CS values, how do I go about reading each