Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/10/2011, 14:34
Avatar de chwc
chwc
 
Fecha de Ingreso: julio-2008
Ubicación: Buenos Aires ! :D
Mensajes: 814
Antigüedad: 15 años, 9 meses
Puntos: 103
Respuesta: problemas com array en una funcion con bucle

Código PHP:
Ver original
  1. <?
  2. $texto = 'las noches en peru dice la señora perla';
  3. function bucle_tags($ducle){
  4.     $ducle = explode(' ', strtolower($ducle));
  5.  foreach ($ducle as $t) {
  6.     if (strlen($t) >= 4) {
  7.         //echo $t . '<br />';
  8.         $docle.="<a href=\"".$t."/\" title=\"".$t."\">".$t."</a>, ";
  9.          
  10.         }
  11. }                                            
  12. return $docle;  
  13. }
  14. echo "<em>".bucle_tags($texto)."<em>";
  15. ?>