Return number of characters in a variable
Posted: Fri Dec 23, 2005 2:32 pm
Hi all..
If I have a variable like:
$var = 1234567890;
How can I return the number of char's in that variable?
As well, while we're at it.. Am I correct in that you don't have to specify what type of variable you are defining, but php does it for you automatically?
What if I wanted to, could I?
Could I do something like:
int $var = 1234567890;
Thanks
David
If I have a variable like:
$var = 1234567890;
How can I return the number of char's in that variable?
As well, while we're at it.. Am I correct in that you don't have to specify what type of variable you are defining, but php does it for you automatically?
What if I wanted to, could I?
Could I do something like:
int $var = 1234567890;
Thanks
David