If you want to place <b> tags around every element in your array, you can use the following:
// The & sign is used to make live changes to the input value.
$input = '<b>' . $input . '</b>';
// Execute the function for every element in every dimension of your array.
Need more info. What are you doing with the array items? It may be easier to just <b> them as they're popped out!