Can I change the variable names used in foreach in PHP?
foreach ($sql2htmlLists as $kkkkk => $vvvvv){
instead of the default:
foreach ($sql2htmlLists as $key => $value){
Thank you
Can I change the variable names used in foreach in PHP?
foreach ($sql2htmlLists as $kkkkk => $vvvvv){
instead of the default:
foreach ($sql2htmlLists as $key => $value){
Thank you
Yes, you can use whatever you want
foreach ($sql2htmlLists as $key => $value){
}
But i suggest you to use proper variables.And try to unset that variables at the end of loop to get out from conflicts.