ltrim()
Remove matching bytes from the left until the first byte outside the mask.
CKTIS / PHP
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
Remove matching bytes from the left until the first byte outside the mask.
With one nonempty array, max selects its greatest value rather than its key.
Use mb_strlen to count characters in the specified encoding rather than raw bytes; null selects the internal encoding.
Use mb_strtoupper to uppercase letters using Unicode properties in the specified encoding, or the internal encoding when omitted.
Read the current number of bytes used by PHP’s memory manager.
Check whether a method is defined, including a private method declared on the class itself.
Read wall-clock Unix time with a microsecond component.
Use min on one nonempty array to obtain its smallest value, or pass two or more individual candidates.
Arrange case-insensitive names in natural order, treating unpadded digit runs as numbers while preserving keys.
Sort strings in place using case-sensitive natural order.
Advance the internal array pointer before reading the next value.
Insert an HTML line-break element before each newline sequence, preserving the original line endings.
Format a numeric value as text with grouping and half-up rounding.
Read the unsigned value of the first byte, in the range 0–255.
Parse a URL query into the required output variable using form decoding.
Split a URL without decoding its percent escapes.
Create a salted password hash carrying its algorithm and cost for later verification.
Compare a stored password hash with the requested algorithm and cost settings.
Check a candidate password against the stored encoded hash.
Read preg_last_error immediately after a PCRE operation to get its integer status code.
Search for the first match. A match returns 1, absence returns 0, and an execution or compilation error returns false.
Collect all non-overlapping matches and return their number, zero for none or false on error.
Escape regular-expression metacharacters in a literal fragment before inserting it into a pattern.
Replace matches with text that can refer to numbered capture groups.