Offset with max - 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 Offset with max.php

  1. <?php
  2.  
  3. var_dump(['null' => max(0, null)]);
  4. var_dump(['empty' => max(0, '')]);
  5. var_dump(['negative' => max(0, -10)]);
  6. var_dump(['negative string' => max(0, '-10')]);
  7. var_dump(['zero' => max(0, 0)]);
  8. var_dump(['zero string' => max(0, '0')]);
  9. var_dump(['positive' => max(0, 10)]);
  10. var_dump(['positive string' => max(0, '10')]);
File Description
  • Offset with max
  • PHP Code
  • 12 Sep-2019
  • 324 Bytes
You can Share it: