PHP: Execute php code inside "php echo" -
i've got php code created echo:
<?php code... $line = "hello world"; echo "<li>php if (!empty($line)) { echo $line; }</li>"; ?>
unfortunately <li>
not show hello world. can see here: http://codepad.org/qfcsindy
your syntax wrong. check this
<?php code... ?> <li><?php echo 'hello world'; ?> <?php ?>
or just
<?php code... echo "<li>hello world</li>"; ?>
Comments
Post a Comment