Home  >  Article  >  Backend Development  >  输出出现未定义变量提醒:Notice: Undefined variable: str in

输出出现未定义变量提醒:Notice: Undefined variable: str in

WBOY
WBOYOriginal
2016-06-13 12:37:101061browse

输出出现未定义变量提示:Notice: Undefined variable: str in
function Call(){
    for($i=0;$i       {
       $str.= $i."
";
       }
    return $str;
}

echo Call();

输出进出现Notice: Undefined variable提示

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn