The other post was correct in that you were forgetting to return your result, but unless I'm mistaken, base_convert format looks like:
string base_convert (string number, int frombase, int tobase);
So, if you want to convert every element of your array from hex to dec, we need to loop through it. Something like:
$stuff = array('$hex1', '$hex2', '$hex3');
function convertHex($convert) {
while(list($key, $hex) = each($convert)) {
$convert[$key] = base_convert($hex, 16, 10);
}
return $convert;
}
convertHex($stuff);
The while(list..each) loops through the array and gives back the key (each array element has a 'key' associated with it to distinguish it as unique in the array) and the actual value of that array element (to be held in $hex). Now, we just replace the value in the array of that key to the converted value and you get an array back with everything converted from hex. Hope that helps!
Chris King