Home >Backend Development >PHP Tutorial >imagecopy 函数报语法错误,在线等,谢谢

imagecopy 函数报语法错误,在线等,谢谢

WBOY
WBOYOriginal
2016-06-23 13:33:18885browse

源代码是:
$dst_im = imagecreatetruecolor(150, 150);
$src_im = imagecreatefromjpeg("demo_files/sago.jpg");
imagecopy($dst_im,$src_im,0,0,0,0,150,150);


gd已开。报错“PHP Parse error: syntax error, unexpected 'imagecopy' (T_STRING)”。


这是什么情况?好人心帮帮忙。


回复讨论(解决方案)

语法错误:语法错误,意外的imagecopy”
请贴全错误信息

找到问题了,在后面有个看不见的中文字符引起的错。把那句话删了重新敲了一遍就好了。谢谢

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