Is there a function like substitute (s///) in perl? I'm trying to replace a space in variables with an underscore _
Thanks.
http://www.php.net/manual/en/function.str-replace.php
reg kevin
Do you mean in the var name, or the var value?
are you looking for str_replace();
$text = "I rock!"; $var = str_replace(" ", "_", $text);
yes, str_replace() great thanks!