M.O.S. Studios Posted December 1, 2008 Share Posted December 1, 2008 if i want to count how many characters there are in a var, what is the comment that can give me a resault for example: $var = "hello"; $amount = count chacaters $var; echo $amount; will output: 5 Quote Link to comment Share on other sites More sharing options...
Garethp Posted December 1, 2008 Share Posted December 1, 2008 Use strlen() strlen ( string $string ) Quote Link to comment Share on other sites More sharing options...
M.O.S. Studios Posted December 1, 2008 Author Share Posted December 1, 2008 AWESOME!!!! thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.