Ver Mensaje Individual
  #6 (permalink)  
Antiguo 02/07/2013, 12:16
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: No entiendo esta linea de codigo

También como apunte, ahora PHP soporta que el primer operador sea opcional, es decir:

Código PHP:
Ver original
  1. $action = (empty($_POST['foo'])) ? 'default' : $_POST['foo'];
  2. // PHP5.3+
  3. $action = ($_POST['foo']) ?: 'default';