Re: Text file Parsing

From: Date: Mon, 12 Jun 2000 16:07:23 +0000
Subject: Re: Text file Parsing
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-1627@lists.php.net to get a copy of this message
> I need something which is Damn urgent.. > > Let me explain what I exactly need. > > I need to parse a text file in which there are three fields...i.e > each field is seperated by a <br>{ this is the delimeter} > > Now Php parser can recognise a tab delimited file... > > I need a script which can help me parse this text file. Use explode(). It does exactly what you're looking for. Description array explode (string separator, string string [, int limit]) Returns an array of strings, each of which is a substring of string formed by splitting it on boundaries formed by the string delim. If limit is set, the returned array will contaion a maximum of limit elements with the last element containing the whole rest of string.

« previous php.general (#1627) next »