<?php
matrix = array(0=>array(0=>'W','P','P','P'),
1=>array(0=>'W','O','P','P'),
2=>array(0=>'W','W','W','P'),
3=>array(0=>'W','M','X','P'));
for ($i=0;$i<count($matrix);$i++)
for ($j=0;$i<count($matrix[$i]);$j++)
if ($matrix[$i][$j]=='O')
{
print $i.$j;
break;
}
- Output for 5.3.23, 5.4.13
- Parse error: syntax error, unexpected '=' in /in/8V3XL on line 3
Process exited with code 255. - Output for 5.3.0 - 5.3.22, 5.4.0 - 5.4.12
- Parse error: syntax error, unexpected '=' in SB9JP on line 3
Process exited with code 255.
preferences:
164.46 ms | 1395 KiB | 45 Q