<?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);;
?>
preferences:
23.98 ms | 404 KiB | 5 Q