method

substring_before

substring_before( string, test )
public

Kouhei fixed this