user3647971

1,069
reputation
1
6
13

I like to solve problems.

function solver($problem){
    $solution = array();
    foreach($problem->parameters as $param){
        $solution[] = $param->where(!$problem->exists($param));
    }
    return $solution;
}