我正在寻找一种方法将字符串变量拆分为两个.举个例子,如果我有:
$activities = "In the morning we will dance, in the evening we will sing"
Run Code Online (Sandbox Code Playgroud)
我想把它拆分成,
$activities1 = "In the morning we will dance"
$activities2 = "In the evening we will sing"
Run Code Online (Sandbox Code Playgroud)
我将不胜感激任何帮助.
谢谢
php ×1