例如
var_dump( split_sql( " insert into abc values
('asjoha ;ighuasdf;as' ,'urwqur;');
select hahaha from abc where qwe='dk;h';"));
会输出
array(2){
[0]=>
string(60) " insert into abc values
('asjoha ;ighuasdf;as' ,'urwqur;');"
[1]=>
string(41) "
select hahaha from abc where qwe='dk;h';"
}
要这样分解!不要像一楼!