<?while(list($a,$b,$c)=fgetcsv(STDIN,0,' '))echo(strstr($c,$b)&strstr($b,$a)?YES:NO)." ";
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page