为什么这样?
Warning: shuffle() expects parameter 1 to be array, resource given in /home/u801961841/public_html/img.php on line 12
真正的 PHP 代码:
<?php
require_once 'masterfile.php';
$text3 = wordwrap($t[0], 31, "\n", true);
$box = @ImageTTFBBox(23,0,'/home/u801961841/public_html/nama.TTF',$user[name]);
$textwidth = abs($box[4] - $box[0]);
$x_finalpos = 255-($textwidth/2);
$image = imagecreatefromjpeg('img_empty.jpg');
$image = imagecreatefromjpeg('img_empty1.jpg');
$image = imagecreatefromjpeg('img_empty2.jpg');
$image = imagecreatefromjpeg('img_empty3.jpg');
$image = imagecreatefromjpeg('img_empty4.jpg');
shuffle($image);
$font_color = ImageColorAllocate($image, 0, 0, 0);
请帮我解决这个问题:(