+ 1
Help me to solve this error in php https://code.sololearn.com/wGSsrSbTM4jP/?ref=app
https://code.sololearn.com/wGSsrSbTM4jP/?ref=app
1 Answer
+ 1
If you mean the deprecated each() function, then you can simply use foreach() instead
foreach( $loveArray as $key => $value )
{
echo "$key : $value<br>";
}