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
Contents
Example : 1 PHP trim() Function
<!DOCTYPE html> <html> <body> <?php $market = "Welcome Pakainfo!"; echo $market . "<br>"; echo trim($market,"Hed!"); ?> </body> </html>
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.
I am Jaydeep Gondaliya , a software engineer, the founder and the person running Pakainfo. I’m a full-stack developer, entrepreneur and owner of Pakainfo.com. I live in India and I love to write tutorials and tips that can help to other artisan, a Passionate Blogger, who love to share the informative content on PHP, JavaScript, jQuery, Laravel, CodeIgniter, VueJS, AngularJS and Bootstrap from the early stage.