ilikemath2002 Posted January 28, 2009 Share Posted January 28, 2009 Is it possible to do this? At top of file: <?php $example = "example"; ?> HTML CODE BLABLABLA <?=$example;?> (= is short tags for echo) If that's not possible is there a way to make the HTML code a variable, and then execute it? Link to comment https://forums.phpfreaks.com/topic/142831-solved-multiple-php-scripts/ Share on other sites More sharing options...
Mark Baker Posted January 28, 2009 Share Posted January 28, 2009 Is it possible to do this? At top of file: <?php $example = "example"; ?> HTML CODE BLABLABLA <?=$example;?> (= is short tags for echo) Errr.... yes. That's the kind of thing that PHP does Though the use of <?= is better done using <?php echo Link to comment https://forums.phpfreaks.com/topic/142831-solved-multiple-php-scripts/#findComment-748713 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.