function wrapper_end() { echo '</div><div class="col-md-4"> тут должен php код </div></div></div>';} php code itself:
<?php sidebar( 'widget-areas-1212' ); ?> тут должен php код';} ...">
function wrapper_end() { echo '</div><div class="col-md-4">'; sidebar('widget-areas-1212'); echo '</div></div></div>'; } $var = sidebar('text'); function name($var){ echo "<div>" . $var . "</div>"; } name($var); $var variable will not be available in the local area of the function, without a forced prompt, through a prototype or via global — which is no longer recommended in principle. - AndSource: https://ru.stackoverflow.com/questions/887752/
All Articles
echo '<p><?php foo(\'bar\'); ?></p>';- Lexx918