Category "purely-functional"

What exactly is a pure function when we are talking about a function within a function

I've learned that a pure function is a function that doesn't alter global state, period. If this is true, functions within functions can alter the state of the

PHP Pure functions

I am trying to identify pure functions in PHP code. A pure function is one where both these statements about the function hold: The function always evaluates