Php - Trim white space in php, Trim function


Trim white space in php

Strip or trim whitespace in php using trim(). Remove unwanted space from your code.

<?php
$hello = "  Hello w3calculator.com  ";
$trimm = trim($hello);
echo $trimm;
?>

Output:
Hello w3calculator.com

In the above output you can see the white space were removed.

Php - Trim function
The topic on Php - Trim white space in php is posted by - Patel
Hope you have enjoyed, Php - Trim white space in php . Thanks for your time.

All rights reserved. © www.w3calculator.com