Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

String Replace and Lower Case Script

Status
Not open for further replies.

Tambourine

Programmer
Oct 9, 2006
4
0
0
GB
Hi, i need a small script that will take a field called 'title' and make all the characters lowercase and remove spacing '%20' and replace it with a '-'

At the moment i have:

$row_blobby['title'] = str_replace(' ', '-', $row_blobby['title']);

That currently removes the spacing but i need a combined script that will do both?

Any help will be great!!!!
 
i.e.

$row_blobby['title'] = str_replace(' ', '-', strtolower($row_blobby['title']));
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top