src/arraytopath/arraytopath.class.php
public function get_data($path=NULL) {
		$myIndexList = array();
		$path = $this->fix_path($path);
		
		if(is_null($path) || (strlen($path) < 1)) {
			//they just want ALL THE DATA.
			$retval = $this->data;
		}
		else {
			//get the list of indices in our data that we have to traverse.
			$myIndexList = $this->explode_path($path);
			
			//set an initial retval.
			$retval = $this->get_data_segment($this->data, $myIndexList[0]); 
			unset($myIndexList[0]);
			
			if(count($myIndexList) > 0) {
				foreach($myIndexList as $indexName) {
					$retval = $this->get_data_segment($retval, $indexName);
					if(is_null($retval)) {
						//hmm... well, if it's null, it's nothing which can have a sub-index.  Stop here.
						break;
					}
				}
			}
		}
		
		return($retval);
		
	}
public function get_data($path=NULL) {
		$myIndexList = array();
		$path = $this->fix_path($path);
		
		if(is_null($path) || (strlen($path) < 1)) {
			//they just want ALL THE DATA.
			$retval = $this->data;
		}
		else {
			//get the list of indices in our data that we have to traverse.
			$myIndexList = $this->explode_path($path);
			
			//set an initial retval.
			$retval = $this->get_data_segment($this->data, $myIndexList[0]); 
			unset($myIndexList[0]);
			
			if(count($myIndexList) > 0) {
				foreach($myIndexList as $indexName) {
					$retval = $this->get_data_segment($retval, $indexName);
					if(is_null($retval)) {
						//hmm... well, if it's null, it's nothing which can have a sub-index.  Stop here.
						break;
					}
				}
			}
		}
		
		return($retval);
		
	}
public function get_data ( $ path = NULL ) { $ myIndexList = array ( ) ; $ path = $ this -> fix_path ( $ path ) ; if ( is_null ( $ path ) || ( strlen ( $ path ) < 1 ) ) { //they just want ALL THE DATA. $ retval = $ this -> data ; } else { //get the list of indices in our data that we have to traverse. $ myIndexList = $ this -> explode_path ( $ path ) ; //set an initial retval. $ retval = $ this -> get_data_segment ( $ this -> data , $ myIndexList [ 0 ] ) ; unset ( $ myIndexList [ 0 ] ) ; if ( count ( $ myIndexList ) > 0 ) { foreach ( $ myIndexList as $ indexName ) { $ retval = $ this -> get_data_segment ( $ retval , $ indexName ) ; if ( is_null ( $ retval ) ) { //hmm... well, if it's null, it's nothing which can have a sub-index.  Stop here. break ; } } } } return ( $ retval ) ; }
Takes a path & returns the appropriate index in the session.

@param $path				<str> path to the appropriate section in the session.

@return <NULL>			FAIL: unable to find requested index.
@return <mixed>			PASS: this is the value of the index.
Takes a path & returns the appropriate index in the session .