- str_replace: documentation ( source)
<?php
$str = "Anil kumar\r\nAhmedabad\r\nAhmedabad,Goa - 380015, India";
$order = array("\r\n", "\n", "\r");
$order1 = array("<br />", "<br />", "<br />");
echo str_replace($order, $order1, $HotArr['billaddress'])."<br />";