ltrim()
functionYou can use the PHP ltrim()
function to strip whitespace from the beginning of a string.
Let's take a look at an example to understand how this function really works:
<?php
$my_str = ' Hello World!';
echo strlen($my_str); // Outputs: 16
$trimmed_str = ltrim($my_str);
echo strlen($trimmed_str); // Outputs: 12
?>
i hope you like this one.
Hi, My name is Harsukh Makwana. i have been work with many programming language like php, python, javascript, node, react, anguler, etc.. since last 5 year. if you have any issue or want me hire then contact me on [email protected]
Create a bootable USB stick on Ubuntu
To install operating system, first you n...How to Compress and Optimize Image before Uploading in Laravel 8
Since performance is by and astronomical...How to remove elements from DOM in jQuery
Use the jQuery remove() method You ca...JWT Token Based Authentication API in NodeJs
Welcome, programming, buddies! Today, In...How to Install OWL Carousel slider in HTML
Slider is important part in the homepage...