str_replace Replace all occurrences of the search string with the replacement string
mixed str_replace ( mixed $search , mixed $replace , mixed $subject [, int &$count ] )
$str = str_replace(" ", "_", "Gideon Koch PM", $count);
echo $str; // Gideon_Koch_PM
echo $count; // 2