Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
php replace space with underscore
Joe
Programming language:
PHP
2021-04-17 01:52:15
0
Q:
php replace space with underscore
LETs
Code:
PHP
2021-06-08 20:15:20
$str = str_replace(' ', '_', $str);
2
Vilmar
Code:
PHP
2021-02-04 04:41:15
$str = str_replace(' ', '_', $str);
1
Tags
php
replace
Related
php replace string within string
php replace spaces with dash
php convert words with spaces to camelcase
php string underscore into camelcase
php insert hyphen into spaces in string
php convert spaces to underscores
php replace \n by <br>
remove empty spaces php
php split string along spaces
replace all numbers in string php
remove spaces from string php
replace all php
remove space from string php
php replace space with 20
replace multiple characters one string php
php replace all spaces with dashes
php replace two spaces with one
remove all spaces php
New to Communities?
Join the community