一个php变量包含
$string = "256 Engineering Maths-I 21 -1 21 F";
印刷
$string
给出输出
256 Engineering Maths-I 21 -1 21 F
这个变量应该分成
$n[0] = "256";
$n[1] = "Engineering Maths-I";
$n[2] = "21";
$n[3] = "-1";
$n[4] = "21";
$n[5] = "F";
我试过了
$n = explode(" ", $string);
但它分为两部分
请帮我