gds - 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 gds.php

  1. <?php
  2.  
  3. $val = 'ABC';
  4.  
  5. $arr = [
  6.     'channel1' => '',
  7.     'channel2' => 'TPRA'
  8. ];
  9.  
  10. if (strpos(strtoupper($arr['channel1']), "GDS") === false
  11.             && strpos($arr['channel1'], "TPRA") === false) {
  12.             echo 'NOT GDS or TPRA';
  13.             exit(0);
  14. }
  15.  
  16. echo "GDS or TPRA";
  17.  
  18.  
  19.  
File Description
  • gds
  • PHP Code
  • 06 Sep-2023
  • 283 Bytes
You can Share it: