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>.....
>=20
> Thanks,
>=20
> Carlos A. Castillo.
> Ingeniero de desarrollo
> ccastillo@no-spam
> ____________________________________
> =20
> Su Aliado Efectivo en Internet
> www.imagine.com.co
> (57 1)2182064 - (57 1)6163218
> Bogot=C3=A1 - Colombia=20
> ____________________________________
> - Soluciones web para Internet e Intranet
> - Soluciones para redes
> - Licenciamiento de Software
> - Asesor=C3=ADa y Soporte T=C3=A9cnico
> ____________________________________
>=20
>=20
> -----Mensaje original-----
> De: Burhan Khalid [mailto:phplist@no-spam
> Enviado el: martes, 08 de julio de 2003 10:15
> Para: Carlos Castillo
> Asunto: Re: [PHP] Read a file
>=20
> 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()....
> =20
> 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 :
>=20
> $contents =3D file("somefile.txt");
>=20
> Which puts all the information in the file in an array.
>=20
> http://www.php.net/file
>=20
>=20
> --=20
> Regards,
> Burhan Khalid
> phplist[at]meidomus[dot]com
> http://www.meidomus.com
>=20
>=20
>=20