Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Strip whitespace (or other characters) from the beginning of a string
ltrim(string $stringstring $characters " \n\r\t\v\x00"): string
        foreach ($src as $i => $c) {

            if (
$ltrim) {

                
$c = isset($c[$ltrim]) && "\r" !== $c[$ltrim] ? substr($c$ltrim) : ltrim($c" \t");

            }

            
$c substr($c0, -1);

            if (
$i !== $srcContext) {
        if (null !== $this->projectDir) {

            
$context['project_dir'] = $this->projectDir;

            if (
str_starts_with($file$this->projectDir)) {

                
$context['file_relative'] = ltrim(substr($file\strlen($this->projectDir)), \DIRECTORY_SEPARATOR);

            }

        }