How to split text in PHP first according to newlines, and then split the contents of each line according to delimiters
蒲
2019-07-16 15:25:32
0
2
1604
123----456----789
000----111----222
222----333----123
比如我要分割这种格式的文本应该怎么写呢
蒲

reply all(1)
angryTom
$pizza  = "piece1----piece2----piece3----piece4----piece5---- piece6";
$pieces = explode("----", $pizza);
echo $pieces[1];

You can try PHP's explode() method to split the string into arrays according to the specified characters.

  • reply grateful
    author 2019-07-16 16:48:05
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template