fork download
  1. X Y output
  2.  
  3. '' 'z00' True
  4. 'z00' 'z00' True
  5. 'z00' '00z0' False
  6. 'anna' 'banana' True
  7. 'Anna' 'banana' False
  8.  
  9. <? echo "1:".s('', 'z00')."\n"; ?>
  10. <? echo "2:".s('z00', 'z00')."\n"; ?>
  11. <? echo "3:".s('z00', '00z0')."\n"; ?>
  12. <? echo "4:".s('anna', 'banana')."\n"; ?>
  13. <? echo "5:".s('Anna', 'banana')."\n"; ?>
  14.  
  15. <?function s($x,$y){return $y==""?$x=="":s(substr($x,$y[0]==$x[0]),substr($y,1));}?>
Success #stdin #stdout 0.02s 13112KB
stdin
Standard input is empty
stdout
X      Y        output

''     'z00'    True
'z00'  'z00'    True 
'z00'  '00z0'   False
'anna' 'banana' True
'Anna' 'banana' False

1:1
2:1
3:
4:1
5: