我不断收到以下代码错误:
致命错误:无法在第 48 行 /home3/laarrkin/public_html/streamconcerns.com/devwork/login-check.php 的写入上下文中使用函数返回值
//StringSplitters
$data_a = explode('hp/details">', $data2);
$data_b = explode(', you', $data_a[1]);
$data_c = explode(' [', $data_b[0]);
$data_d = explode(' ', $data_c[0]);
$data_e = explode(']', $data_c[1]);
$data_f = explode('</a></str', $data_d[1]);
$data_g = explode('<td class="period_slot_2">', $data2);
$data_h = explode('<strong>', $data_g[1]);
$data_i = explode('</strong>', $data_h[1]);
//Function
function yearlevel() {
$str = $data_i[0];
if (($strlen($str) = 6)) {//Line 48
$k = str_split($str, 3);
$k2 = str_split($k[1], 1);
if ($k2[0] == "1") {
return "11";
}
if ($k2[0] == "2") {
return "12";
}
if ($k2[0] == "3") {
return "13";
}
} else {
return "10";
}
}