I've been working in various companies and I've seen different reasons for using PHP interfaces. I would like to hear your opinion, what do you think in which cases should we use PHP interfaces, the reason behind using interface?
dado.d 0 Newbie Poster
Recommended Answers
Jump to PostI took a look at https://www.google.com/search?&q=When+to+use+PHP+interfaces and it seems to be well discussed.
Can you narrow down what you are looking for beyond the usual answer?
Jump to Post"How do I recognize whether I should use interface or not?"
The most common usage of interfaces is when you find you need to create different (unrelated) classes to have similar required functionality.
All 5 Replies
rproffitt 2,701 https://5calls.org Moderator
dado.d 0 Newbie Poster
rproffitt 2,701 https://5calls.org Moderator
jeevanism 0 Newbie Poster
pritaeas 2,211 ¯\_(ツ)_/¯ Moderator Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.