array_filter(explode(',',"test,jfu,menghuiguli"));

处理后自然会过滤掉空值。