Re: Obtener un string

From: Date: Mon, 21 Jan 2002 23:00:34 +0000
Subject: Re: Obtener un string
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-18097@lists.php.net to get a copy of this message
On Mon, 21 Jan 2002, Julio Herrera - Directo wrote: > Osea necesito "BusqueEn(espp05.jpg, LoSiguiente ',' )" sea una funcion de strpos() http://www.php.net/manual/es/function.strpos.php o pudes usar expresiones regulares: ereg() http://www.php.net/manual/es/function.ereg.php que en tu caso quedaría: if (ereg("(...)(.*)\.(.)", $archivo, $partes)) { $idioma=$partes[1]; $nombre=$parte[2]; $ext=$parte[3]; } else { echo "algo esta mal"; } Saludos, Toño. --- mailto: jcgalici@agc.com.mx

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