You need to use the return of str_replace!
$name = str_replace('-', '_', $name);
solved Name of PHP function [closed]
You need to use the return of str_replace!
$name = str_replace('-', '_', $name);
solved Name of PHP function [closed]