// Loop $key
$key = count($_SESSION['imageURL']);
for ($i = 1; $i <= $key; $i++) {
echo $_SESSION['imageURL'][$i];
echo $_SESSION['clubURL'][$i];
}
// Loop $key $key = count($_SESSION[‘imageURL’]); for ($i = 1; $i <= $key; $i++)
Share
There are several other ways:
foreachwhiledo..whilePersonally, I prefer your technique with the
forloop.