Jump to content

Replacing spaces in a string? (Str_replace doesn't work?)


Michdd

Recommended Posts

I was trying this:

 

$geturl = $row['url'];
$geturl = $str_replace(' ', '%', $geturl);

 

So basically it would replace spaces in a URL with a %, I need it to do this because I'm using a getimagesize() function to determine weather or not to thumbnail an image.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.