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

Popular posts from this blog

1111. appearing after print sequence - php -

excel - I can't get the attachement of the email PHP -

node.js - Express and Redis - If session exists for this user, don't allow access -