So if my string looks like this "2011 -01-01" how can I remove the white space within the string?
str_replace(' ','',$string);