Created
March 31, 2017 14:00
-
-
Save phpfiddle/ac0cb7da46208598ffff54182cd58ca9 to your computer and use it in GitHub Desktop.
[ Posted by Siddiq ] To put html content between php code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$variable = 'checking'; | |
$variable = <<<HTML | |
<div class="yui-content" style="overflow-y:auto;height:241px;"> | |
<div class="bodywrapper"> | |
<br/> | |
<br/> | |
<div width="100%" class="wizard"> | |
<div> | |
<center><b>Checking output</b></center> | |
</div> | |
<div id="button"> | |
<table width="90%" align="center" border="1" cellspacing="7"> | |
<tbody> | |
<tr> | |
<td>$variable</td> | |
<td>html</td> | |
</tr> | |
</tbody> | |
</table> | |
</div> | |
</div> | |
</div> | |
</div> | |
HTML; | |
echo $variable; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment