<?php $msg = '$hello , ken (JX02), Your Orders $invoiceno has been delivered. Thank you.'; $hello = "morning!"; $msg = isset($hello) ? str_replace( '$hello' , $hello, $msg): str_replace( '$hello' , "", $msg); $msg = isset($invoiceno) ? str_replace( '$invoiceno' , $invoiceno, $msg): str_replace( '$invoiceno' , "", $msg); echo str_replace(" ", " ", $msg);; ?>
You have javascript disabled. You will not be able to edit any code.