I have this code:
$category = $product->category;
if(!empty($category->category_id)){
$category = [$category->parent->title,$category->title];
}
it gives result such as:
Default Category first level category
what i want is to add > between Default Category and first level category
how do i do that?