src/ADT/StringBuffer.php
public function getPrevChar()
	{
		if( $this->direction == ">" )
			$this->pointer--;
		if( $this->pointer <= $this->count() &&  $this->pointer > 0 )
		{
			$this->direction = "<";
			$this->pointer--;
			$character = $this->buffer[$this->pointer];
		}
		return $character;
	}
public function getPrevChar()
	{
		if( $this->direction == ">" )
			$this->pointer--;
		if( $this->pointer <= $this->count() &&  $this->pointer > 0 )
		{
			$this->direction = "<";
			$this->pointer--;
			$character = $this->buffer[$this->pointer];
		}
		return $character;
	}
public function getPrevChar ( ) { if ( $ this -> direction == ">" ) $ this -> pointer -- ; if ( $ this -> pointer <= $ this -> count ( ) && $ this -> pointer > 0 ) { $ this -> direction = "<" ; $ this -> pointer -- ; $ character = $ this -> buffer [ $ this -> pointer ] ; } return $ character ; }
Returns the previous Character.
@access		public
@return		string
Returns the previous Character .