[thelist] PHP echoing...

Donald Noble donald at drnoble.co.uk
Sun Aug 18 13:49:01 CDT 2002


Hi evolters,

I have been usingf PHP for a whileand was wondering what the
best/fastest way to output text is/ I assume is is dependant on the
particular situation, but any thoughts would be helpful.

I am particularly interested in which of these methods is "better"...

<?
# case1
	// some php
	while($i<20)
	{
		?>Some HTML<?=$php ?> html <?
	}
# case2
	// some php
	while($i<20)
	{
		echo "Some HTML $php html";
	}
# case3
	// some php
	while($i<20)
	{
		echo 'Some HTML '.$php.' html';
	}

I have been wondering this for a while, and David Kutcher said in a
recent post that ?> <? was faster, but is that just faster than a series
of echo " content "; ???

Cheers :Donald

--
     http://www.AccessibleComputers.co.uk
 Hardware, Software & Custom built PC Systems





More information about the thelist mailing list