toSpaces
Converts tabs to spaces.
Description
static toSpaces(int $tabLength = 4)
Each tab in the string is replaced with some number of spaces, as defined by $tabLength. By default, each tab is converted to 4 consecutive spaces.
Parameters
- int $tabLength
Number of spaces to replace each tab with.
Return Value
static