|
Size: | 8335 |
Storage flags: | no_autoload,compress/gzip (33%) |
This filter modifies a given string and removes all new line characters within that string.
There are no additional options for Zend\Filter\StripNewlines:
A basic example of usage is below:
1 2 3 | $filter = new Zend\Filter\StripNewlines();
print $filter->filter(' This is (my)``\n\r``content: ');
|
The above example returns ‘This is (my) content:’. Notice that all newline characters have been removed.
The source code of this file is hosted on GitHub. Everyone can update and fix errors in this document with few clicks - no downloads needed.