NameSilo

Count

SpaceshipSpaceship
Watch

DSL

Established Member
Impact
6
How would I count occurances of a character? Say like games-domains-coms.com

What function would I use to count the occurance of -?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
In what language are you talking about? You can use strlen in PHP or length in Perl.

Oh I read your post wrong I think. You're wanting to count how many times a certain character occurs in a string right? You can use substr_count in PHP and the tr/// function in perl for that.
 
Last edited:
0
•••
thanks.
 
0
•••
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back