<?phpecho mb_substr( 'truc,muche', 0, mb_strpos('truc,muche',',') );
Standard input is empty
truc
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!