public function get($id, $default = null)
    {
        if (strpos($id, '.') !== false) {
            $k = '$this->data' . "['" . str_replace('.', "']['", $id) . "']";
            eval('$has = isset(' . $k . ');');
            if ($has) {
                eval('$value = ' . $k . ';');
                return $value;
            } else {
                return $default;
            }
        } else {
            return $this->has($id) ? $this->data[$id] : $default;
        }
    }
public function get($id, $default = null)
    {
        if (strpos($id, '.') !== false) {
            $k = '$this->data' . "['" . str_replace('.', "']['", $id) . "']";
            eval('$has = isset(' . $k . ');');
            if ($has) {
                eval('$value = ' . $k . ';');
                return $value;
            } else {
                return $default;
            }
        } else {
            return $this->has($id) ? $this->data[$id] : $default;
        }
    }
public function get ( $ id , $ default = null ) { if ( strpos ( $ id , '.' ) !== false ) { $ k = '$this->data' . "['" . str_replace ( '.' , "']['" , $ id ) . "']" ; eval ( '$has = isset(' . $ k . ');' ) ; if ( $ has ) { eval ( '$value = ' . $ k . ';' ) ; return $ value ; } else { return $ default ; } } else { return $ this -> has ( $ id ) ? $ this -> data [ $ id ] : $ default ; } }
Finds an entry of the collection by its identifier and returns it.

@param String $id      Identifier of the entry to look for.
@param Mixed  $default A default value.

@return Mixed Entry.
Finds an entry of the collection by its identifier and returns it .