Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199807

Re: [PHP3] How to count how many characters in a variable? From: Zeev Suraski (bourbon <email protected>)
Date: 07/31/98

On Fri, 31 Jul 1998, Paul Monaghan wrote:

>
> The subject more or less says it all.
>
> $name= first name returned from a web form
>
> How do I find out how many characters $name currently is?

strlen() returns the length of the string representation of the variable.

Zeev

-- 
-----------------------------------------------------
Zeev Suraski <zeev <email protected>>
For a PGP public key, finger bourbon <email protected>

-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3