On my localized server the following code works perfectly to remove all spaces and linebreaks and insert a comma.
[php]$page_data[‘output’] = preg_replace(’/\s\s+/’, ‘,’, $this->input->post(‘input’));[/php]
- Note I am using CodeIgnitor for this development version.
It correctly parses a list like this:
But when running on DreamHost the function doesn’t work at all. Any thoughts or assistance would be greatly appreciated.