Ver Mensaje Individual
  #4 (permalink)  
Antiguo 19/11/2010, 10:36
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 10 meses
Puntos: 2135
Respuesta: Problemilla con parametros y funciones

En el Manual hay muchos ejemplos pero uno básico:
Código PHP:
Ver original
  1. $foo = 'bar';
  2. function something()
  3. {
  4.          global $foo;
  5.          echo $foo;
  6. }

Saludos.