I need to remove spaces from a value that I get from a file. How can I do this?
$value = " something with spaces"; $newvalue = ereg_replace("[[:space:]]", "", $value); print $newvalue;
should print "somethingwithspaces".
you can do the same with: print ereg_replace("[[:space:]]", "", $value);
-Chris