Posts by Ozias Junior • 1 point
2 posts
-
-1
votes1
answer18
viewsA: Relate the indices (keys) of an obejto Array to the indices (keys) of an array (PHP)
After a lot of testing and reading of the PHP documentation, I can solve my problem. foreach ($values as $key => $items) { if (in_array(null, $items)) { $status['status'][$key] = "0"; } else {…
-
-1
votes1
answer18
viewsQ: Relate the indices (keys) of an obejto Array to the indices (keys) of an array (PHP)
I have a question where I could not find a solution. I have an Array object values and an array status, where I want to relate the indexes of the Array object values to the indices of the array…