as the picture shows,i want to echo total amount_due in client_main.pdt file,but not modify system files.Because it is not conducive to update.
I used a very primitive way:
<?php if(isset($message)){
$pa = '%<p>(.*?)</p>%sim';
preg_match($pa, trim($message), $arr);
preg_match('/.\d{1,}.\d{1,2}/', $arr[1], $arr);
$total_due=$arr[0];
}else{
$total_due='0.00';
}
?>