tags:

views:

65

answers:

3

i am trying to replace spaces in the following var

 $e_type = 'Hello World TEST';

ca anyone help me please

+4  A: 

str_replace

David Dorward
+2  A: 

Check this. You have some nice examples there...

Chathuranga Chandrasekara
+5  A: 

You want str_replace:

$e_type = str_replace(' ', '_', $e_type);
Matt