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 Link to comment https://forums.phpfreaks.com/topic/135013-solved-character-count/ Share on other sites More sharing options...
Garethp Posted December 1, 2008 Share Posted December 1, 2008 Use strlen() strlen ( string $string ) Link to comment https://forums.phpfreaks.com/topic/135013-solved-character-count/#findComment-703159 Share on other sites More sharing options...
M.O.S. Studios Posted December 1, 2008 Author Share Posted December 1, 2008 AWESOME!!!! thanks Link to comment https://forums.phpfreaks.com/topic/135013-solved-character-count/#findComment-703160 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.