cos1.3 - 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 cos1.3.php

  1. <?php
  2. function hasStaticType($num, $type) {
  3.     return ($num & $type) ? true : false;
  4. }
  5. $value = 1153;
  6. if(hasStaticType($value, 1)){
  7.     echo '1 is set';
  8. } else {
  9.     echo '1 is not set';
  10. }14h25p39s done 
  11.  
  12.  
File Description
  • cos1.3
  • PHP Code
  • 01 Mar-2024
  • 206 Bytes
You can Share it: