endWith() endWith( $haystack, $needle) Change from path style to host style, currently only host style is supported in cos. Parameters $haystack $needle