Add useful functions commonly used in projects
Functions such as maybe_json_decode
, multi_array_key_exists
and multi_array_map
. multi_array_map
needs to be used in the account component for an issue (see here)
Comments (9)
-
-
reporter For some we could, others like the
maybe_json_decode
I mentioned wouldn’t really work in there, since it’s not about arrays. -
reporter These might also be useful: https://stackoverflow.com/a/11040612
-
@apalfrey1 OK. If it is about array, we can add it to the Arrays file. If not, just add it to where appropriate. If you think we need a class for a collection of the functions for the same target, we can have a new class.
-
reporter -
assigned issue to
-
assigned issue to
-
reporter @Luke Nelson @Jamin Xu I’ve added a bunch of useful functions, check out the item in teams. Is there any others that could be added in as well?
-
@apalfrey1 @luc122c Brilliant! That will save us a lot of headache in the future. I don't have any, but I would like to have a team discussion about where to keep them.
-
- changed status to open
-
- changed status to resolved
- Log in to comment
We have a Class - Arrays to handle functions for arrays. Can we add the functions to that file?