Counting Dot Char

admin

Administrator
Staff member
Well i'd like to count how many dots are there in a sentence. example
$text="my name is joko. my mom is siti. and my father is jack."
Dots (.) in that sentence ($text) are 3. But how to count that in PHP?

thanks for anybody helping me
 
Back
Top