function strstr($stack,$needle,$before=FALSE,$case=FALSE) {
		if (!$needle)
			return FALSE;
		preg_match('/^(.*?)'.preg_quote($needle,'/').'/us'.($case?'i':''),
			$stack,$match);
		return isset($match[1])?
			($before?
				$match[1]:
				$this->substr($stack,$this->strlen($match[1]))):
			FALSE;
	}
function strstr($stack,$needle,$before=FALSE,$case=FALSE) {
		if (!$needle)
			return FALSE;
		preg_match('/^(.*?)'.preg_quote($needle,'/').'/us'.($case?'i':''),
			$stack,$match);
		return isset($match[1])?
			($before?
				$match[1]:
				$this->substr($stack,$this->strlen($match[1]))):
			FALSE;
	}
function strstr ( $ stack , $ needle , $ before = FALSE , $ case = FALSE ) { if ( ! $ needle ) return FALSE ; preg_match ( '/^(.*?)' . preg_quote ( $ needle , '/' ) . '/us' . ( $ case ? 'i' : '' ) , $ stack , $ match ) ; return isset ( $ match [ 1 ] ) ? ( $ before ? $ match [ 1 ] : $ this -> substr ( $ stack , $ this -> strlen ( $ match [ 1 ] ) ) ) : FALSE ; }
Returns part of haystack string from the first occurrence of
needle to the end of haystack
@return string|FALSE
@param $stack string
@param $needle string
@param $before bool
@param $case bool
Returns part of haystack string from the first occurrence of needle to the end of haystack