![]() |
evalArray()
I've written a small function that basically applies a calculation to all elements of an array using Zero's eval function.
Here it is: PHP Code:
The second argument is your formula in post-fix notation (more on that in Zero's thread). In this array you can use E0, E1, E2 and so on to refer to the current array element of the specific array (starting at 0, obviously) depending on how many arrays you've given to the function. Example: PHP Code:
Maybe this is useful for some of you guys. I've written it for a project of mine. |
All times are GMT +2. The time now is 11:31 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.