Prepare for the ZCE exam using our quizzes
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:
<?php$filter = new Zend_Filter_StripNewLines();print $filter->filter("This is (my)\n\rcontent: ');
The above example returns 'This is (my) content:'. Notice that all newline characters
have been removed.