Hi,
I have a wired problem with ereg_replace when I try to to remove spaces from a string:
$dir_name = "test dir"; ereg_replace (' ','_',$dir_name);
Doesn't work...
Any idea?
Thanks, Assaf
$dir_name = "test dir"; $new_name = ereg_replace (' ', '_', $ dir_name);
And why in the world would you want to use ereg_replace here? [man]str_replace/man would certainly be much more efficient.