Page 1 of 1

filtering string

Posted: Thu Mar 04, 2010 10:30 am
by getmizanur
From MSSQL i'm getting the following string for an output

Code: Select all

 
Alaska+%26+the+Rockies
 
I want to filter the above string to "Alaska the Rockies"

Can someone help.

Cheers

Re: filtering string

Posted: Thu Mar 04, 2010 11:45 am
by flying_circus
It appears to have been url encoded

Code: Select all

<?php
  print urldecode('Alaska+%26+the+Rockies'); // Outputs: "Alaska & the Rockies"
?>