How to get the category name from category slug in wordpress?
<p>I have the link like below :</p>

<p><a href="http://localhost/rajab/product-category/pvc-hose/" rel="noreferrer">http://localhost/rajab/product-category/pvc-hose/</a></p>

<p>the term "pvc-hose" is the category slug. I wanted to derive the category name from this slug name. I wanted to display the category name becaus the slug name is having the "-" in between.I dont want this when i am displaying the category slug. How to remove this ?</p>