erm, what value are you tesing $count against..?
for argument's sake let's say you're using a for loop testing $count against a value of 10:
there are a couple of ways of doing the same thing.
$end = 10;
for($count = 0; $count < $end; $count++) {
if($count == 0) echo "STARTING";
// other code to run
if($count == $end) echo "ENDING";
}
otherwise:
$end = 10;
echo "STARTING";
for($count = 0; $count < $end; $count++) {
// code to run here
}
echo "ENDING";
the second way would be _slightly_ faster because you're not testing for the value of $count an extra 2 times on each loop but the code isn't quite as modular & pretty. i hate having random echo statements each side of loops throughout the code.