我想要做的是将一个PHP字符串拆分成一组子字符串,这些子字符串基于“分隔器”字符分组成数组,这些字符开始于这些子字符串。字符*、^和%保留为分隔字符。因此,如果我有字符串"*Here's some text^that is meant*to be separated^based on where%the divider characters^are",
我们有一个字符串形式的句子和字符串中一些短语的数组,如下所示: const sentence = "I told her your majesty they are ready";
const phrases= ["your", "they are ready"]; 我想将sentence字符串拆分成数组数组,其中每个数组都是基于phrases拼接的