Ver Mensaje Individual
  #3 (permalink)  
Antiguo 01/09/2020, 11:33
SLD
 
Fecha de Ingreso: diciembre-2013
Mensajes: 121
Antigüedad: 10 años, 4 meses
Puntos: 6
Respuesta: se puede definir propiedad B con valor de varaible/propiedad A sin utiliza

Cita:
Iniciado por tuadmin Ver Mensaje
Código PHP:
class postfijo {
    public 
$A 'AAA';
    public 
$B 'default value';

    function 
__construct(){
        
$this->$this->A.'postfijo';
    }

Gracias TuAdmin.

Entonces, NO ES POSIBLE
hacerlo SIN utilizar __CONSTRUCT/FUNCTION/SETTER ?