To refer to a public property named categoryName for an object that's referenced by $category, you code

To refer to a public property named categoryName for an object that's referenced by $category, you code



Answer: $category->categoryName


Learn More :