NameSilo

Count

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
Spacemail by SpaceshipSpacemail by Spaceship
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
Truehost — .com domains from $4.99, hosting includedTruehost — .com domains from $4.99, hosting included

We're social

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