Test - 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.
Result of php executing
Full code of Test.php
- <?php
- function f($v){
- $f = $v;
- echo $f;
- switch($v){
- case 'c':
- $f = 'u';
- break;
- case 'd':
- $f = 'u';
- break;
- case 'e':
- $f = 'y';
- break;
- }
- return $f;
- }
- function caracteres($c1,$c2,$c3){
- echo $c1;
- $a = $c2;
- $b = $this->f($c1);
- $c = $a;
- return array('a'=> $a, 'b'=> $b, 'c'=>$c);
- }
- function ejercicio5(){
- $a = 'a';
- $b = 'b';
- $c = 'c';
- $res = $this->caracteres($a,$c,$b);
- echo $res['a'];
- echo $res['c'];
- exit;
- }
- ejercicio5();
- ?>