<?php
$test='jedan
dva
tri';

print $test;

print bin2hex($test);

print str_replace(chr(13).chr(10), " ", $test);
?>