Function __global->ltrim

Definitions

sources_custom/phpstub.php

  • Strip whitespace from the beginning of a string.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$string string No No required parameter N/A N/A The string to trim from
$characters string No No N/A N/A Characters to trim

Returns

  • The trimmed string
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Strip whitespace from the beginning of a string.
 *
 * @param  string $string The string to trim from
 * @param  string $characters Characters to trim
 * @return string The trimmed string
 */

function ltrim(string $string, string $characters = '  

'
) : string