function alert($msg){
echo "<script language=\"javascript\" type=\"application/javascript\">alert($msg);</script>";
}
我写成这样,使用的时候提示
A PHP Error was encounteredSeverity: Warning
Message: Cannot modify header information - headers already sent by(output started atE:\xampp\htdocs\securities\system\application\libraries\functions.php:77)
Filename: helpers/url_helper.php
Line Number: 541