PHP Reference issues
I reference the function cut () of B file in a file, write include_once ("b.php") on page A, and then call But I don't know why I always run an error fatal Error:call to undefined function cut () in D:\XAMPP1.7.3\xampp\htdocs\web\index.php on line 233
Does this mean that there is no cut function defined? But I clearly defined it. Then look at the page a source file, the part that should show the result is my cut function code.
The Cut function is function Cut ($STR, $Length) {//$STR to intercept the string, $Length the length to intercept
if (($l > $Length) && ($i < $ll)) {
$s = $s. '...'; Break If intercepted, the end of the string is appended with the ellipsis "..."
}
}
return $s;
}
?>
I do not know that I express clearly no, I hope someone can help answer.
------Solution--------------------
Have you opened the PHP break tag, your a file's PHP tag should be ------Solution--------------------
discuss
Have you opened the PHP break tag, your a file's PHP tag should be
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.