Answers for "what does the trim function do php for empty string"

PHP
2

how to trim text php

$text = "      hello world   ";
$text = trim($text);

=> "hello world"
Posted by: Guest on September-28-2020

Code answers related to "what does the trim function do php for empty string"

Browse Popular Code Answers by Language