src/Alg/Turing/Machine.php
private function cleanTape( &$tape )
	{
		while( substr( $tape, 0, 1 ) == $this->blank )
			$tape = substr( $tape, 1 );
		while( substr( $tape, -1 ) == $this->blank )
			$tape = substr( $tape, 0, -1 );
	}
private function cleanTape( &$tape )
	{
		while( substr( $tape, 0, 1 ) == $this->blank )
			$tape = substr( $tape, 1 );
		while( substr( $tape, -1 ) == $this->blank )
			$tape = substr( $tape, 0, -1 );
	}
private function cleanTape ( & $ tape ) { while ( substr ( $ tape , 0 , 1 ) == $ this -> blank ) $ tape = substr ( $ tape , 1 ) ; while ( substr ( $ tape , - 1 ) == $ this -> blank ) $ tape = substr ( $ tape , 0 , - 1 ) ; }
Deletes not needed Blanks at start and end of the tape.
@access		private
@param		string		$tape			current tape to be cleaned up
@return		string
Deletes not needed Blanks at start and end of the tape .