Hi,

if(is_numeric($return = substr("$f", 0, 1)))
etc... You can look at the manual to get the list of the is_() functions:
 is_array
 is_bool
 is_callable
 is_double
 is_float
 is_int
 is_integer
 is_long
 is_null
 is_numeric
 is_object
 is_real
 is_resource
 is_scalar
 is_string
etc.


--

Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet

"Mike Fifield" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> I am using
>
> substr("$f", 0, 1);
>
> to get the first character of a string but what to be able to tell if the
> first character is a digit or a letter is there a way to do this?
>
>
>
>
>
>


begin 666 box-0.gif
M1TE&.#EA"P`'`(#_`,# P ```"'Y! $`````+ `````+``<`0 (-A(\6FAK?
)HI0+U/1@*@`[
`
end

begin 666 box-1.gif
M1TE&.#EA"P`'`(#_`,# P ```"'Y! $`````+ `````+``<`0 (,A(\6&ZGL
(HI2LN>H*`#L`
`
end


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to