samples/PhotoAlbum/lib/rb.php
public function grep( $word ) {
		$found = array();
		foreach($this->logs as $log) {
			if (strpos($log,$word)!==false) {
				$found[] = $log;
			}
		}
		return $found;
	}
public function grep( $word ) {
		$found = array();
		foreach($this->logs as $log) {
			if (strpos($log,$word)!==false) {
				$found[] = $log;
			}
		}
		return $found;
	}
public function grep ( $ word ) { $ found = array ( ) ; foreach ( $ this -> logs as $ log ) { if ( strpos ( $ log , $ word ) !== false ) { $ found [ ] = $ log ; } } return $ found ; }
Searches the logs for the given word and returns the entries found in
the log container.

@param  string $word word to look for

@return array $entries entries that contain the keyword
Searches the logs for the given word and returns the entries found in the log container .