<?php substr(string $string, int $offset, ?int $length = null): string
<?php } if (strings($color)->startsWith('#')) { $color = substr($color, 1); if (strings($color)->length() === 3) { $color = $color[0] . $color[0] . $color[1] . $color[1] . $color[2] . $color[2];