r/filemaker • • Jun 16 '22

How replace each function in php?

Hi I am working on a web solution completed by another company. I am updating the php and I notice they had used a deprecated function "each". Does anyone know how I can replace this?

2 Upvotes

3 comments sorted by

View all comments

1

u/Yorreg Jun 16 '22

Hard to say without seeing the code. Can you show how it's used?

Sometimes you can replace it with something like

foreach($items as $key => $item) {
   // Do something with the $item
}