Unstoppable Domains โ€” Expired Auctions

Count

SpaceshipSpaceship
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
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Appraise.net
Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back