Ver Mensaje Individual
  #11 (permalink)  
Antiguo 30/01/2007, 17:54
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 20 años, 4 meses
Puntos: 2135
Re: Procedural u Objetos????

Código PHP:
function hazalgo( $objeto1, $objeto2 ) {
       
$valor = $objeto1->algo();
       
$objeto2->otracosa( $valor );

       return 
$objeto2->otra();
}

echo 
hazalgo();