Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
php convert spaces to underscores
Krystal Young
Programming language:
PHP
2021-06-03 06:18:50
0
Q:
php convert spaces to underscores
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
con
Related
php replace two spaces with one
php replace space with 20
remove every whitespace php
php replace spaces with dash
remove empty spaces php
php insert hyphen into spaces in string
php replace all spaces with dashes
php remove last character from string
php replace space with underscore
remove last letter php
php string underscore into camelcase
remove whitespace from string php
remove space from string php
php remove last character in string
php remove all whitespace from a string
convert space to 20 php
remove all spaces php
php convert words with spaces to camelcase
remove spaces from string php
New to Communities?
Join the community