exclude characters from counting?


Posted on 16th Feb 2014 07:03 pm by admin

Hello, I wanted to ask if you have a string like:
Code: $my_s='ASRGREGTGTR----REGREGRE+++RRRRRR....';

is there a way to count the length of the string, excluding non-word characters (+,- or .)?

thank you

No comments posted yet

Your Answer:

Login to answer
72 Like 8 Dislike
Previous forums Next forums
Other forums

Get Total From While Loop
I'm trying to get the total for each product and add them for a Grand Total to list outside the loop

Php Mysql Page Loading Notice
Hi all,

I was wondering if there is a way (Sure there is) of showing a message or an image wh

upload image name with extension using php
hi frds..

<input id="file1" type="file" name="file[]" &a

why isn't this PHP code working ???
it's suppose to find a name on the database.

<?php

$s = $_POST["lname&

Extra fields in main body and php required.
I'm new to PHP so please be gentle. I have a little php script below that works well.
The &quo

Run function every 5 mins ??
I have a function PostMessage()

How can I run it every 5 mins ??

Pagination
Okay here is the page in question: http://blenderteachings.000a.biz/tutorials.hamishhill.php

pagination - need help on passing of search query.
Hi, i have been trying for days but couldn't get this sorted out. Would like some professional help

Motivational Posters
Hello,

I wonder how can i do them in php. Are there any sample codes that you can show me?

what does this mean? +=
is anyone able to explain what this code is saying?

i had it written for me awhile back and n

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash