PHP - convert a string into uppercase with strtoupper()

0 votes
271 views
added Aug 9, 2019 in PHP by LC Marshal Captain (25,790 points)
<?php 
  
// default string 
$title = "Lazacode Page"; 
  
// convert $title string to uppercase 
$titleUp = strtoupper($title); 
  
print_r($titleUp); 
 
// Output
// LAZACODE PAGE
?> 

 

1 Response

0 votes
responded Aug 9, 2019 by LC Marshal Captain (25,790 points)
<div class="rig-type"><?php echo strtoupper($rig->type_a); ?></div>

 

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