//PHP (for test) - to print variable and see the outcome on browser <?php print_r($summary); die();?>
To check available values in a row
<?php echo "<pre>"; print_r($rows); echo "</pre>"; exit; ?>
<?php $topay = $unit->field_cost_to_own->value(); $paid_amt = 'RM '.number_format($topay-$balace_amt); $percent_own = (($topay-$balace_amt) / 100) * $topay; echo '<pre>'; print_r($percent_own); exit; ?>
<?php echo $url; die(); ?>