I have an array like this (this is actually a WordPress category list array):
Array ( [0] => stdClass Object ( [term_id] => 4 ) [1] => stdClass Object ( [term_id] => 6 ) )
Is there a way to exctract "term_id" values and assign it to $term variable with comma separated values?
in this case variable should be: $term = 4,6
Thanks for the help !