<?php
$muhaza = "muhaza";
echo<<<HERE
<h1>$muhaza</h1>
HERE;
?>
https://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc
All muhaza's note in developing website. Front-end & uiux method. Real life implementation for webdesigner.
<?php
$muhaza = "muhaza";
echo<<<HERE
<h1>$muhaza</h1>
HERE;
?>
https://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc
<?php
// You can do this, programmatically, using the following code ... Test It Yourself (TIY)
$colors=(file("random.txt"));//colors array
$c1=sizeof($colors)-1;//get position of the last element within the colors array
// -- OR, if you prefer --
//$c1=count($colors)-1;//get position of the last element within the colors array
//pick a color at random from the colors array - 'Mersenne Twister based'
$color=$colors[mt_rand(0,$c1)];
echo<<<HERE
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="2">
</head>
<body>
<div style="width:400px; background-color:$color; border:1px; text-align:center;" >
$color
</div>
</body>
</html>
HERE;
?>
<a href="mailto:designoutsourced.com+info@gmail.com?subject=Maklumat%20lanjut%20pakej&body=Hai,%20saya%20berminat%20tahu%20lebi...