This would work:
$string = "345kldfr24j5h2kn HI@#I&BL&@BLDH)*@#$E";
for ($i=65;$i<=90;$i++) {
if (strstr($string, chr($i))) {
$found[] = chr($i);
}
if (strstr($string, strtolower(chr($i)))) {
$found[] = strtolower(chr($i));
}
}
print "The following letters were found at least once in the string ";
while (list($key,$val) = each ($found)) {
print $val;
}