Jump to content

STR_REPLACE Help


alanl1

Recommended Posts

Hi All

 

I am doing a str_replace for different values that need to be replaced within my variable like so

 

$datadownboxValue = str_replace(' ', '_', $datadownboxValue);
$datadownboxValue = str_replace('-', '_', $datadownboxValue);
$datadownboxValue = str_replace('/', '_', $datadownboxValue);

 

can this be done easier EG all in one rather than repeat for each different value

 

 

thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/279951-str_replace-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.