The ltrim function removes whitespaces (or other characters) from the beginning of a string

    
    $wordLtrim = ltrim('   Hello');
    echo $wordLtrim;
    // Hello

    $greeting = "Hello World!";
    $greetingLtrim = ltrim($greeting,"Hello");
    echo $greetingLtrim;
    // World!