i am trying to replace spaces with underscore '_' in the following variable
$e_type = 'Hello World TEST';
can anyone help me please
你想要str_replace
:
$e_type = str_replace(' ', '_', $e_type);
Check this . You have some nice examples there...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.