Ver Mensaje Individual
  #12 (permalink)  
Antiguo 02/03/2012, 10:54
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: Usar funciones (prog. estructurada) o clases y objetos (poo)

Aquí esta static:
Código PHP:
Ver original
  1. class HelloWorld {
  2.     public static function say() {
  3.         echo "hello world!";
  4.     }
  5. }

Took 0.042479 secs
Memory Start 312.36 kb
Memory End 312.77 kb

Muy cercano a estructurada.

Saludos.