original_string: public function pathGetOr( $path, $default )
  	{
  		$path = $this->createPath($path);
  		if( $path[0] == 1 )
  		{
  			return $this->get($path[1]);
  		}
  
  		$array = & $this->items;
  		for( $i = 1, $len = $path[0]; $i <= $len; $i++ )
  		{
  			$key = $path[$i];
  			if( ! array_key_exists($key, $array) )
  			{
  				break;
  			}
  
  			if( $i == $len )
  			{
  				return $array[$key];
  			}
  
  			if( !isset($array[$key]) || !is_array($array[$key]) )
  			{
  				break;
  			}
  
  			$array = & $array[$key];
  		}
  
  		return $default;
  	}
code: public function pathGetOr( $path, $default )
  	{
  		$path = $this->createPath($path);
  		if( $path[0] == 1 )
  		{
  			return $this->get($path[1]);
  		}
  
  		$array = & $this->items;
  		for( $i = 1, $len = $path[0]; $i <= $len; $i++ )
  		{
  			$key = $path[$i];
  			if( ! array_key_exists($key, $array) )
  			{
  				break;
  			}
  
  			if( $i == $len )
  			{
  				return $array[$key];
  			}
  
  			if( !isset($array[$key]) || !is_array($array[$key]) )
  			{
  				break;
  			}
  
  			$array = & $array[$key];
  		}
  
  		return $default;
  	}
code_tokens: public function pathGetOr ( $ path , $ default ) { $ path = $ this -> createPath ( $ path ) ; if ( $ path [ 0 ] == 1 ) { return $ this -> get ( $ path [ 1 ] ) ; } $ array = & $ this -> items ; for ( $ i = 1 , $ len = $ path [ 0 ] ; $ i <= $ len ; $ i ++ ) { $ key = $ path [ $ i ] ; if ( ! array_key_exists ( $ key , $ array ) ) { break ; } if ( $ i == $ len ) { return $ array [ $ key ] ; } if ( ! isset ( $ array [ $ key ] ) || ! is_array ( $ array [ $ key ] ) ) { break ; } $ array = & $ array [ $ key ] ; } return $ default ; }
docstring: Get value from path or get default value if not exists.
  
  @param string $path
  @param mixed $default
  @return mixed
docstring_tokens: Get value from path or get default value if not exists .