class_string
The class_string filter will convert an array into a string suited for html class-attribute.
It ignores empty spaces:
It also ignores values not considered suitable for classes:
It also supports iterable and \Traversable
objects:
Last updated
Was this helpful?