php trim – The Best PHP 3 Examples

Today, We want to share with you php trim.In this post we will show you php trim spaces before and after, hear for PHP trim and lowercase we will give you demo and example for implement.In this post, we will learn about PHP Shorten String Function with an example.

php trim

Example : 1 PHP trim() Function

<!DOCTYPE html>
<html>
<body>

<?php
$market = "Welcome Pakainfo!";
echo $market . "<br>";
echo trim($market,"Hed!");
?>

</body>
</html>

Free Live Chat for Any Issue

Example : 2

<?php
$marketing_name=' Welcome to Pakainfo.com ';
$all_marketing=trim($marketing_name);
echo $all_marketing;
?>

Example : 3

<?php
$marketing_name="	Welcome to Pakainfo.com";
$all_marketing=trim($marketing_name,"\t");
//echo $all_marketing;
var_dump($all_marketing);
?>

I hope you get an idea about php trim.
I would like to have feedback on my infinityknow.com.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, donโ€™t forget to share.