fork download
  1. <?php
  2.  
  3. class CreatePaymentRequestLightbox{
  4. public $pedido_total = 0;
  5.  
  6. public function main(){
  7. echo $this->pedido_total;
  8. }
  9. }
  10.  
  11. $valortotal = 15.00;
  12. $paymentRequest = new CreatePaymentRequestLightbox();
  13. $paymentRequest->pedido_total = $valortotal;
  14. $paymentRequest->main();
Success #stdin #stdout 0.02s 24448KB
stdin
Standard input is empty
stdout
15