Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

Count

SpaceshipSpaceship
NamecheapNamecheap
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.
GoDaddyGoDaddy
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
•••
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover

NamePros updates

Watched threads: your alert now keeps up with new replies
When you watch a thread, each new reply now updates your alert. Before, you got one alert and then nothing until you read the thread...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back