var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
I am trying to think of a way to rewrite a URL to work with how I want it.
For example I'm trying to have the spaces in the URL coded as - rather than +
This works and prints out 'this-is-a-test'.
$newUrl = urlencode($url);
$urlnew = str_replace('+', '-', $newUrl);
print(encode_url("this is a test"));
What I also would like to achieve using this is all the %20 and %21 etc codes to be removed. Can someone give me a list of all the common % codes? Thanks.
opps sorry. I found what i was looking for
Well maybe someone can use the code above neways.