dgbnfgn - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of dgbnfgn.php

  1. <?php
  2.  
  3. class matematica {
  4.  
  5.    public static function sumar($num1,$num2){
  6.       $suma=$num1+$num2;
  7.       return $suma;
  8.    }
  9.  
  10.    public static function restar($num1,$num2){
  11.       $resta=$num1-$num2;
  12.       return $resta;
  13.    }
  14.  
  15.    public static function multiplicar($num1,$num2){
  16.       $multi=$num1*$num2;
  17.       return $multi;
  18.    }
  19.  
  20.    public static function dividir($num1,$num2){
  21.       $divi=$num1/$num2;
  22.       return $divi;
  23.    }
  24.  
  25. }
  26.  
  27. ?>
File Description
  • dgbnfgn
  • PHP Code
  • 19 Sep-2022
  • 459 Bytes
You can Share it: