Am I right in figuring that you want to take the 'T's and 'F's and such in the array and replace them with "checked" and ""?
Even if that's not the case, then using variable references sounds like the solution you're looking for. If it is the case you'd use them like this:
--reference here--v
function checkbox(&$boxstatus){
if($boxstatus=='T')
{ $boxstatus='checked';
}else
{ $boxstatus='';
}
checkbox($myrow['colname']); will then update $myrow['colname'] to be 'checked' or ''.
With the reference marker there, the variable passed to checkbox() will have its value tied to that of $boxstatus inside the function, so that changing the latter has the same effect as changing the former.