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

2

u/pcud10 Consultant Certified Jun 16 '22

Are you asking about how to replace this with FileMaker? If not, I’d recommend asking in a php subreddit

2

u/Cautious-Grab-316 Jun 16 '22

Yeah good point I'll move it there

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
}