Using LOOP
for ($i=0; $i < 1000; $i++)
{
echo "<li>content $i</li>";
}
Using INCLUDE
include("file.php");
the file.php contains same content as the loop but it is hard coded or static.
I've tried to run those two different codes on local host and monitor their response time. I can't decide which one to choose because the response time changes over time, some times the LOOP is faster but some time the INCLUDE is faster.
I want to ask your recommendation on which one is best to use.