Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
remove space from start and end of string in php
Uollano
Programming language:
PHP
2021-05-03 12:17:43
0
Q:
remove space from start and end of string in php
mikisdad
Code:
PHP
2021-02-17 08:52:15
$string = str_replace(' ', '', $string);
2
Jaylee
Code:
PHP
2021-02-25 03:54:59
$trimmed = trim($text); var_dump($trimmed);
0
Tags
string
php
remove
start
Related
string remove line breaks php
php string cut first x characters
php remove after character
remove space from string php
remove spaces from string php
php nth characters from end of string
remove last comma from string php
remove every whitespace php
php split string at first space
remove all spaces php
php remove last character in string
remove last letter php
php insert hyphen into spaces in string
remove line break html php
php remove stop words from string
remove whitespace from string php
php remove everything after character
php preg match space or start of string
php remove last character from string
New to Communities?
Join the community