There is a line (tsv file) of the following type:

"текст" "1" "45" "" "текст" 

How to use preg_split() to split such a string into an array?

    1 answer 1

    You can do the following:

     <?php $str = '"текст" "1" "45" "" "текст"'; $arr = preg_split('/"\s+"/', trim($str, '"')); echo '<pre>'; print_r($arr);