ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-spanish
php-spanish
Re: [PHP-ES] Funcion de string
by Guillermo Rauch other posts by this author
Feb 25 2005 9:17PM messages near this date
Re: [PHP-ES] Funcion de string | Re: [PHP-ES] Funcion de string
A aquellos que respondieron con la funcion explode, piensen un poco mas.
Al que le dijo que la solucion era preg_match_all, you got it.


On Fri, 25 Feb 2005 12:42:21 -0600, Luis Mario Meraz [Mundoweb]
<mario@[...].mx>  wrote:
>  Hola Oswaldo
>  
>  Creo que no es mucho problemas si te das una vuelta por la funcion explode,
>  puedes hacer lo que tu dices, meterlos en un array y contarlos con count()
>  
>  http://mx2.php.net/manual/es/function.explode.php
>  
>  es mas en los ejemplos que da el manual tienes la solucion
>  
>  Saludos
>  
>  At 12:38 p.m. 24/02/2005, you wrote:
>  >Hola a todos, necesito, extraer de un codigo html, que estoy
>  >obteniendo, cierta informacion, de este modo.
>  >
>  >
>  >
>  >$data="<table>
>  >   <tbody>
>  >     <tr>
>  >       <td>Cosa uno</td>
>  >       <td>Cosa dos</td>
>  >       <td>Cosa tres</td>
>  >     </tr>
>  >     <tr>
>  >       <td>Cosa cuatro</td>
>  >       <td>Cosa cinco</td>
>  >       <td>Cosa seis</td>
>  >     </tr>
>  >   </tbody>
>  ></table>";
>  >
>  >$cadena=strip_tags($data);
>  >
>  >Ok, eso cuando le hago un echo a $cadena, me devuelve algo como esto
>  >
>  >Cosa uno Cosa dos Cosa tres Cosa cuatro Cosa cinco Cosa seis .
>  >
>  >Lo que necesito es una funcion, que me pueda cortar esos cosa, en algo
>  >como un array, para poder usar las variables.
>  >
>  >Sabe alguien de una funcion similar, o alguien se ha enfrentado con un
>  >problema de esta magnitud.
>  >
>  >Muchas Gracias a todos
>  >
>  >--
>  >Oswaldo Otero en Gmail
>  >
>  >La "G" es de GEEK
>  >
>  >--
>  >PHP Spanish Localization Talk Mailing List (http://www.php.net/)
>  >To unsubscribe, visit: http://www.php.net/unsub.php
>  
>  --
>  PHP Spanish Localization Talk Mailing List (http://www.php.net/)
>  To unsubscribe, visit: http://www.php.net/unsub.php
>  
> 

-- 
PHP Spanish Localization Talk Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Oswaldo Otero
Luis Mario Meraz
Guillermo Rauch
Luis Mario Meraz

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved