解析错误:语法错误,意外的“public”(T_STRING),第 4 行需要函数(T_FUNCTION)
<?php
// Redirect Page Function
class Redirect {
public function __construct($url = null) { \\ this is line 4
if ($url)
{
echo '<script>location.href="'.$url.'";</script>';
}
}
}
?>
请删除评论,您的代码应该可以正常工作。
这是您应该删除的内容:
\ 这是第 4 行
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句