Jump to content

[SOLVED] trim function not doing as I would expect


dmccabe

Recommended Posts

This is probably something really obvious, but for some reason I just cant get it right.

 

				$dirname = trim($row['name']," "); /*This creates a trimmed name without spaces to allow branch local directions to work*/
				echo $dirname;

 

I was wanting to take any spaces out of the $row['name'] value, however it doesnt seem to take them out at all.

 

What am I doing wrong?

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.