protected function findInputValueByName( $name, $inputArray )
    {
        foreach($inputArray as $key=>$value){
            if($key === $name) { // use === because plain == allowed numeric indexes to be equal to names
                return $value;
            }
            if (is_array($value)) {
                if (($result = $this->findInputValueByName($name,$value)) !== false) {
                    return $result;
                }
            }
        }

        return false;
    }
protected function findInputValueByName( $name, $inputArray )
    {
        foreach($inputArray as $key=>$value){
            if($key === $name) { // use === because plain == allowed numeric indexes to be equal to names
                return $value;
            }
            if (is_array($value)) {
                if (($result = $this->findInputValueByName($name,$value)) !== false) {
                    return $result;
                }
            }
        }

        return false;
    }
protected function findInputValueByName ( $ name , $ inputArray ) { foreach ( $ inputArray as $ key => $ value ) { if ( $ key === $ name ) { // use === because plain == allowed numeric indexes to be equal to names return $ value ; } if ( is_array ( $ value ) ) { if ( ( $ result = $ this -> findInputValueByName ( $ name , $ value ) ) !== false ) { return $ result ; } } } return false ; }
search through entire input array for the value indicated by name.

@param $name
@param $inputArray
@return bool
search through entire input array for the value indicated by name .