Parse error when using split or implode

ساخت وبلاگ
I want to split some posted values, but I'm getting this error message:
syntax error, unexpected '$check' (T_VARIABLE)


This is my coding:

Code:

if(!empty($_POST['student'])) {
foreach($_POST['student'] as $check) {
        $pieces*=*split('-',*$check);
        echo*$pieces[0];
        echo*$pieces[1];
}
}

And the values I want to split look like these:
Murray-9
Murray-87
Murray-107
Thomas-107

I don't know where the error message comes from, when I just 'echo $check' everything works fine:

Code:

if(!empty($_POST['student'])) {
foreach($_POST['student'] as $check) {
        echo $check;
}
}


I'm not sure whether to use split or implode , but I get the same error message when I use implode instead of split.
Anyone who knows what i'm doing wrong here?
CodingForums...
ما را در سایت CodingForums دنبال می کنید

برچسب : نویسنده : codingforums بازدید : 162 تاريخ : سه شنبه 25 مهر 1396 ساعت: 22:45