爲什麼會這樣?警告:shuffle()期望參數1是數組
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);
請幫我解決這個問題:(
錯誤信息似乎很清楚:X – Esailija