implode the array and explode it when you're done... -dan On Tue, 2003-07-08 at 11:52, carlos castillo wrote: > But them how i can look for the tag i need if i have the file in an > array, i need to read an xml file and extract the info between tags > <password xxxxx> and </password>..... > > Thanks, > > Carlos A. Castillo. > Ingeniero de desarrollo > [EMAIL PROTECTED] > ____________________________________ > > Su Aliado Efectivo en Internet > www.imagine.com.co > (57 1)2182064 - (57 1)6163218 > Bogotá - Colombia > ____________________________________ > - Soluciones web para Internet e Intranet > - Soluciones para redes > - Licenciamiento de Software > - Asesoría y Soporte Técnico > ____________________________________ > > > -----Mensaje original----- > De: Burhan Khalid [mailto:[EMAIL PROTECTED] > Enviado el: martes, 08 de julio de 2003 10:15 > Para: Carlos Castillo > Asunto: Re: [PHP] Read a file > > On Tuesday, July 8, 2003, 6:08:20 PM, Carlos wrote: > CC> I need to read a whole file and then look for an info on it, i want > to know > CC> with which function is better, fopen(), > fpasstrhu().......fseek().... > > The function that will be best will depend on what kind of file you > are wanting to read. For simple text files, this works well : > > $contents = file("somefile.txt"); > > Which puts all the information in the file in an array. > > http://www.php.net/file > > > -- > Regards, > Burhan Khalid > phplist[at]meidomus[dot]com > http://www.meidomus.com > > >
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php