okay,
i answered my own question.
since there is no foreach in php3 you can do this:
for($i = 0; $i < sizeof($yourarray); $i++) {
$current_value = $yourarray[$i];
}
this is replacing the php4:
foreach($yourarray as $current_value) {
}
hope this help someone other than myself!
-sridhar
P.S. Rams: I KNOW that foreach is not supported in php3. That's why I asked for an alternative. but thanks for your response anyway. =)