How can I split a string at the first occurrence of “-” (minus sign) into two $vars with PHP?

后端 未结 4 1830
逝去的感伤
逝去的感伤 2020-12-14 05:25

How can I split a string at the first occurrence of - (minus sign) into two $vars with PHP?

I have found how to split on every \"-\" but, not only on the first occur

4条回答
提交回复
热议问题