how to take vakue in valriable in php code example
Example 1: set php var to html
<?php ob_start();?>
<div>Contents goes <b>here</b></div>
<?php $contents=ob_get_clean();?>
Example 2: php variables
<?php
$string = 'string';
$number = 1;
?>
<?php ob_start();?>
<div>Contents goes <b>here</b></div>
<?php $contents=ob_get_clean();?>
<?php
$string = 'string';
$number = 1;
?>