akiles99
asked on
php help needed
Hi,
I face a problem with a hyphen in a string..
eg:many strings in the sentence are like eg:cars-and-trucks---are-- fast-----s ometimes
So i need a script which will make it ascars-and-trucks-are-fast -sometimes .
The script will remove multiple '-' from a string. I there is more then one '-' (minus the quotes) in a row, I want to string output to remove the extra connecting '-'.
Thanks ee,
akiles
I face a problem with a hyphen in a string..
eg:many strings in the sentence are like eg:cars-and-trucks---are--
So i need a script which will make it ascars-and-trucks-are-fast
The script will remove multiple '-' from a string. I there is more then one '-' (minus the quotes) in a row, I want to string output to remove the extra connecting '-'.
Thanks ee,
akiles
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER