php ltrim function : php remove left string

Remove characters from the left side of a string:

Example

<?php
$str = “Hello World!”;
echo $str . “<br>”;
echo ltrim($str,”Hello”);
?>
Output:
World!

Related Posts

  • 49
    MySQL TRIM() function returns a string after removing all prefixes or suffixes from the given string. Syntax TRIM([{BOTH | LEADING | TRAILING} [remstr] FROM ] str) Arguments Name Description BOTH Indicates that prefixes from both left and right are to be removed. LEADING Indicates that only leading prefixes are to…
    Tags: trim, string, function, example, left

Satya Prakash

VOIP Expert: More than 8 years of experience in Asterisk Development and Call Center operation Management. Unique Combination of Skill Set as IT, Analytics and operation management.

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: