Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

PHP print - Output a string

0 votes
30 views
added Mar 29 in PHP by Callum Sergeant (1,480 points)
edited Jul 20 by LC Marshal
//PHP (for test) - to print variable and see the outcome on browser
<?php print_r($summary); die();?>

2 Responses

0 votes
responded Apr 24 by LC Marshal Lieutenant (13,850 points)
edited Jul 20 by LC Marshal

To check available values in a row 

<?php
  echo "<pre>";
  print_r($rows);
  echo "</pre>";
  exit;
?>
0 votes
responded Jul 20 by LC Marshal Lieutenant (13,850 points)
<?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;

?>

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...