You don't need serialize to pass an array to a function, only to store it somewhere like a database or a text file in a plain text format.
Just pass an array into a function and you're done. i.e.:
function bubba($trucks){
print "Bubba drives ".count($trucks)." trucks";
}
$trucks = array("white","freightliner","mack");
bubba($trucks);