src/collections/Variables.php
public function find($callback)
    {
        foreach ($this->value as $value) {
            if (call_user_func($callback, $value)) {
                return $value;
            }
        }
        
        return null;
    }
public function find($callback)
    {
        foreach ($this->value as $value) {
            if (call_user_func($callback, $value)) {
                return $value;
            }
        }
        
        return null;
    }
public function find ( $ callback ) { foreach ( $ this -> value as $ value ) { if ( call_user_func ( $ callback , $ value ) ) { return $ value ; } } return null ; }
Finds an item by callback function.
Returns it's value.
@param callable $callback
@return mixed first item found or null if nothing match
Finds an item by callback function . Returns it s value .