function replace($search,$replace){
		settype($search,"string");

		// prevod StringBuffer na string
		if(is_object($replace)){
			$replace = $replace->toString();
		}

		for($i=0;$i<sizeof($this->_Buffer);$i++){
			$this->_Buffer[$i]->replace($search,$replace);
		}
	}
function replace($search,$replace){
		settype($search,"string");

		// prevod StringBuffer na string
		if(is_object($replace)){
			$replace = $replace->toString();
		}

		for($i=0;$i<sizeof($this->_Buffer);$i++){
			$this->_Buffer[$i]->replace($search,$replace);
		}
	}
function replace ( $ search , $ replace ) { settype ( $ search , "string" ) ; // prevod StringBuffer na string if ( is_object ( $ replace ) ) { $ replace = $ replace -> toString ( ) ; } for ( $ i = 0 ; $ i < sizeof ( $ this -> _Buffer ) ; $ i ++ ) { $ this -> _Buffer [ $ i ] -> replace ( $ search , $ replace ) ; } }
Replaces string in buffer with replacement string.

@access public

@param string $search replaced string
@param string|StringBuffer $replace	replacement string. or another StringBuffer object
Replaces string in buffer with replacement string .