<p>I saw this question asked about C# I would like an answer for PHP. I have some old code that has 4 pages of foreach loops and conditions which just makes it hard to read and follow. How would I make this more OO? I was thinking of using SPL Functions but don't fully understand whats involved yet.</p>

Start slowly.  refactor it a piece at a time.
If you are looping over a lot of arrays, look at the array functions like
```
array_map
```
,
```
array_walk
```
, and friends.  This is more a functional refactoring then an OO refactoring, but it would carry you pretty far.
If
it made sense to go more OO, then you will have some functions that you could then push into the proper classes as needed.