Ver Mensaje Individual
  #4 (permalink)  
Antiguo 30/11/2008, 10:38
Avatar de Ronruby
Ronruby
 
Fecha de Ingreso: julio-2008
Ubicación: 18°30'N, 69°59'W
Mensajes: 4.879
Antigüedad: 15 años, 9 meses
Puntos: 416
Respuesta: Como Poner Enlaces Aleatorios con PHP

Código PHP:
//Calculo el numero total de enlaces 
$total_enlaces=1
while ( !empty(
$enlace[$total_enlaces+1]) ) { 
        
$total_enlaces++; 

Para eso existe la funcion count.

Código PHP:
<?php
echo count($enlace); //Imprime 3.
//o tambien esta sizeof($enlace);
?>