I am trying to upgrade php 7.4 to php 8.0. One popular code in my script is the each($array) line, now depreciated. I have most taken care of most but one is throwing me, should be simple.
Most are like:
while(list($key, $params) = each($lines))
which can be recoded as
foreach($lines as $key => $params)
but this one is
while(list(, $params) = each($lines))
So the key is not specified, I assume this just reads in each line,
if I code it like below, I get an error.
foreach($lines as $params)
What am I missing?