Echo inside an element attribute?
问题 I was just wondering if it is possible to put a php echo inside an iframe? something like this: <iframe src="<?php echo $dyn; ?>" width="800" height="500" scrolling="yes"></iframe> and if not, what is the correct way of doing this? 回答1: The way PHP works is that work is done behind the scenes, before the HTML is even sent, so by the time that you actually send the full data to the user, it's parsed into what should be given to the browser. That is to say, when for example <?php $dyn = "index