错误告诉我:array_slice()期望参数1是数组。有人能告诉我我做错了什么吗?
<?php
$vendorlist = array(array($n,$ca,$b,$co,$a,$aa,$aaa,$t,$tt,$e,$p));
$record = unserialize(@file_get_contents('./Vendors/$vendorlist'));
$new_vendor_number = array_slice($record[0],-1,5);
$catname = array_slice($record[0],5,100);
echo "$new_vendor_number";
echo "$catname";
$new_vendor_number = array_slice($record[1],-1,5);
$catname = array_slice($record[1],5,100);
echo "$new_vendor_number";
echo "$catname";
?>