Skip to content

Instantly share code, notes, and snippets.

@phpfiddle
Created March 31, 2017 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phpfiddle/eb7cd9be8bffa4e8be353abbb664fdc9 to your computer and use it in GitHub Desktop.
Save phpfiddle/eb7cd9be8bffa4e8be353abbb664fdc9 to your computer and use it in GitHub Desktop.
[ Posted by Siddiq ] Put html content between php
<?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" 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