$my_string="sjdhe9,dj(jd73";
$key = "d9j";
$pos = strlen($my_string);
for($i = 0; $i < strlen($key); $i++)
{
if((strpos($my_string, substr($key, $i,1)) !== false) && strpos($my_string, substr($key, $i,1))<$pos)
{
$pos = strpos($my_string, substr($key, $i,1));
$offset= $i;
}
}
echo "pos: ".$pos+1.", char: ".substr($key, $offset,1);
thats what i come up with, if your's is smaller....