Page 1 of 1

How do i count the number of chars in a string?

Posted: Fri Aug 16, 2002 2:37 pm
by gotDNS
Hey, I was wondering how i could count the number of characters in a string? Thanks.

Posted: Fri Aug 16, 2002 2:52 pm
by cheatboy00
strlen ($var);

just insert your varibale where $var is and it'll count how many characters their are

Posted: Fri Aug 16, 2002 2:53 pm
by gotDNS
Thanks man!

Later on, -Brian