- print_r: documentation ( source)
- array_walk: documentation ( source)
<?php
$term_ids_weirdstuff = array(
0 => array('tid' => 1),
1 => array('tid' => 2),
2 => array('tid' => 3),
);
$term_ids=array();
array_walk($term_ids_weirdstuff,function($val) use(&$term_ids){
$term_ids[]=$val['tid'];
});
print_r($term_ids);
?>