PHP - funcio en php preg_match_all

 
Vista:

funcio en php preg_match_all

Publicado por dozarli (1 intervención) el 08/03/2009 03:04:29
ayuda por favor lo que quiero hacer es lo siguiente
quitar todo de toda estas direcciones
claro q estos estan dentro de un archivo
<a title="Presiento - rakin y ken-y" href="lista.php?v=1a3bxc4" class="escuchar">
<a title="Presiento1 - rakin y ken" href="lista.php?v=1c3b5f2" class="escuchar">
<a title="Presiento2 - rakin y ken" href="lista.php?v=1e3b5hd" class="escuchar">
<a title="Presiento3 - rakin y ken" href="lista.php?v=1f3b5rv" class="escuchar">
<a title="Presiento4 - rakin y ken" href="lista.php?v=1d3b5s3" class="escuchar">

con la funcion

preg_match_all

la funcion es algo asi

function Buscar($array, $fuente = "") {
if ($fuente != "") {
preg_match_all($array,$fuente,$wars);
} else {
preg_match_all($array,$this->Gets_cont(),$wars);
}
return $wars;
}

quiero resultados algo asi:

Array (
[0] => Array (
[0] => Presiento - rakin y ken-y
[1] => Presiento1 - rakin y ken
[2] => Presiento2 - rakin y ken
[3] => Presiento3 - rakin y ken
[4] => Presiento4 - rakin y ken
)
[1] => Array (
[0] => 1a3bxc4
[1] => 1c3b5f2
[2] => 1e3b5hd
[3] => 1f3b5rv
[4] => 1d3b5s3
)

por favor gracias; :)
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder