p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

beginning_php thread: length string!


Message #1 by "G.S." <gsadmin@l...> on Wed, 30 Oct 2002 19:23:43 +0100
Hi,
$a = "abcndefgh";
To calculate the length of $a. 
How I can count the characters?
Thanks
G.S:



Message #2 by "Nikolai Devereaux" <yomama@u...> on Wed, 30 Oct 2002 10:36:47 -0800
> $a = "abcndefgh";
> To calculate the length of $a. 
> How I can count the characters?


strlen($a);

http://www.php.net/strings
http://www.php.net/strlen


take care,

nik


  Return to Index