truncate_str()

public function truncate_str(array $data): string

The truncate_str() method is supported by a dedicated helper function. For guidance on how to use it, click here.