well that's not the one I'm looking for,but that's my fault, I wasn't clear enough. I want the function to read the character at the given position. The character is not known.

e.g
$string="What a beautiful day"
echo functioniwant($string,2)
----------------------------------
The result should be "h".