PHP print - Output a string

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

3 Responses

0 votes
responded Apr 24, 2018 by LC Marshal Captain (25,790 points)
edited Jul 20, 2018 by LC Marshal

To check available values in a row 

<?php
  echo "<pre>";
  print_r($rows);
  echo "</pre>";
  exit;
?>
0 votes
responded Jul 20, 2018 by LC Marshal Captain (25,790 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;

?>

 

0 votes
responded Mar 13, 2020 by LC Marshal Captain (25,790 points)
<?php
echo $url; die(); 
?>

 

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