Posted by tony on 07/01/06 19:48
Does PHP have a byte or character type ?
If I do
$email = "tony@tony.com";
echo $email[0];
I can get the letter "t"
However according to the documentation (and my tests) this is not being
extracted as a character but a string.
How can I extract just the character itself ?
To test this you can do this:
echo ((int)$email[0]);
and it returns 0.
is there a character (byte) type at all ?
tony
[Back to original message]
|