Ver Mensaje Individual
  #13 (permalink)  
Antiguo 18/09/2006, 16:59
GikaJavi
 
Fecha de Ingreso: agosto-2006
Mensajes: 121
Antigüedad: 18 años, 7 meses
Puntos: 0
Tenemos el siguiente código:

Código PHP:
if (function_exists("file_get_contents"))
    
$f file_get_contents($_f);
else
    
$f implode(file($_f), "\n"); 
¿Qué instrucción se ejecutará en PHP 4.2?

a) Ninguna
b) $f = file_get_contents("f.txt");
c) $f = implode(file($_f), "\n");
d) Imposible de determinar

Respuesta: c (file_get_contents() está disponible a partir de PHP 4.3)