Hi,
I need to have a little snippit of code that takes out all of the spaces from a variable. For example, I need to replace " " with "" from $variable. If you can understand what I mean, please help!
Thanks,
- Jeff
[resolved] replacing a space with nothing
Moderator: General Moderators
-
ibanez270dx
- Forum Commoner
- Posts: 74
- Joined: Thu Jul 27, 2006 12:06 pm
- Location: Everywhere, California
[resolved] replacing a space with nothing
Last edited by ibanez270dx on Mon Jul 31, 2006 1:02 pm, edited 1 time in total.
-
klarinetking
- Forum Commoner
- Posts: 59
- Joined: Mon Jul 24, 2006 9:43 am
Code: Select all
str_replace(' ','',$string);Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
-
ibanez270dx
- Forum Commoner
- Posts: 74
- Joined: Thu Jul 27, 2006 12:06 pm
- Location: Everywhere, California