Hf - 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 Hf.php
- <?php
- function findPath($m, $size, $s, $t) : bool{
- for($i = 1; $i < $size; $i++) {
- if($m[$s][$i] == )
- if($m[$s][$i] !== 0) {
- findPath($m, $size, $i, $t);
- }
- }
- }
- $m = [
- [0,2,0,0,0,3],
- [0,0,1,0,0,0],
- [0,0,0,4,0,0],
- [0,0,0,0,0,0],
- [0,0,0,3,0,0],
- [0,0,2,0,1,0]
- ];
- var_dump(findPath($m, 6, 2, 4));