substr()
Extracts a part of the text.
Syntax
substr($text, $start, $length)
Description
Returns a substring starting from baslangic (with optional length). Negative baslangic counts from the end.
Example
Loading editor…
Expected output
Hex
When to use?
First N characters, truncation.