I've created an array of categories in php like this:
$cats=array("Coffee", "Beverages", "Drinks", "Snacks/Desserts");
But I want to make it like dynamic. Let's say when I update my database via my website (delete-change name-add a new category), I need this array to follow those updates.
Is is possible? Or else, how can I deal with it?