Re: Saber caracter al final de un array.

From: Date: Fri, 16 May 2008 19:15:13 +0000
Subject: Re: Saber caracter al final de un array.
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-62670@lists.php.net to get a copy of this message
para arreglos de cadenas puedes usar algo asi: $mi_array = preg_grep("/~$/", $array); On Tue, May 13, 2008 at 5:10 PM, Pablo Braulio <brulics@gmail.com> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hola. > > Tengo una pregunta. > > Tengo un array. Me gusta poder saber si existe un carácter al final de > cada valor. > > Es decir, por ejemplo, quiero saber que valores acaban en ~ > > ¿Alguien sabe como poder hacerlo?. > - -- > > > < ¡¡Nos vemos!! > > ---------------------------- > \ > \ > .::!!!!!!!:. > .!!!!!:. .:!!!!!!!!!!!! > ~~~~!!!!!!. .:!!!!!!!!!UWWW$$$ > :$$NWX!!: .:!!!!!!XUWW$$$$$$$$$P > $$$$$##WX!: .<!!!!UW$$$$" $$$$$$$$# > $$$$$ $$$UX :!!UW$$$$$$$$$ 4$$$$$* > ^$$$B $$$$\ $$$$$$$$$$$$ d$$R" > "*$bd$$$$ '*$$$$$$$$$$$o+#" > """" """"""" > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFIKhHpK7lGsMchFswRAr2RAJ0TTpL2CIE8yw81A0fl1rFEiP3IPwCdFKki > 3wj+eYWWlEc+agbZ/vzFARY= > =rQ/h > -----END PGP SIGNATURE----- > > -- > PHP Spanish Localization Talk Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general.es (#62670) next »