src/Alg/Turing/Machine.php
private function getCurrent( &$tape, $pointer )
	{
		if( $pointer < 0 || $pointer >= strlen( $tape ) )
		{
			$current = $this->blank;
			$this->extendTape( $tape, $pointer );
		}
		else $current = substr( $tape, $pointer, 1 );
		return $current;
	}
private function getCurrent( &$tape, $pointer )
	{
		if( $pointer < 0 || $pointer >= strlen( $tape ) )
		{
			$current = $this->blank;
			$this->extendTape( $tape, $pointer );
		}
		else $current = substr( $tape, $pointer, 1 );
		return $current;
	}
private function getCurrent ( & $ tape , $ pointer ) { if ( $ pointer < 0 || $ pointer >= strlen ( $ tape ) ) { $ current = $ this -> blank ; $ this -> extendTape ( $ tape , $ pointer ) ; } else $ current = substr ( $ tape , $ pointer , 1 ) ; return $ current ; }
Returns current Sign.
@access		private
@param		string		$tape			current tape to be cleaned up
@param		string		$pointer		current Position on tape
@return		string
Returns current Sign .