<?php $string = 'test' . chr(0) . "\n" . 'Test' . "\r\n"; $result = mb_ereg_replace('(.*(\0)|(\r)|(\n)|(\r\n).*)', '\\\1', $string); var_dump($result);
You have javascript disabled. You will not be able to edit any code.