Answers for "trim pgp"

PHP
1

remove whitespace from string php

$str = "\n\n\nHello World!\n\n\n";
echo "With trim: " . trim($str);
Posted by: Guest on July-10-2020
2

how to trim text php

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

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

Browse Popular Code Answers by Language