alin19 Posted February 7, 2008 Share Posted February 7, 2008 <?php $pattern ="alin"; $pattern .= "balan"; $x=count ($pattern); echo $x; ?> as i see count just give you the number of elements from an array, how can i find out how many letters are in this string? Link to comment https://forums.phpfreaks.com/topic/89906-solved-counting-the-numbers-of-letters-in-a-word/ Share on other sites More sharing options...
revraz Posted February 7, 2008 Share Posted February 7, 2008 strlen? Link to comment https://forums.phpfreaks.com/topic/89906-solved-counting-the-numbers-of-letters-in-a-word/#findComment-460824 Share on other sites More sharing options...
craygo Posted February 7, 2008 Share Posted February 7, 2008 strlen($pattern); Link to comment https://forums.phpfreaks.com/topic/89906-solved-counting-the-numbers-of-letters-in-a-word/#findComment-460826 Share on other sites More sharing options...
alin19 Posted February 7, 2008 Author Share Posted February 7, 2008 10x Link to comment https://forums.phpfreaks.com/topic/89906-solved-counting-the-numbers-of-letters-in-a-word/#findComment-460827 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.