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 PostThe answer lies in what PHP Interfaces do for us. Another answer is you don't have to use it. Here's the paragraph that sums up why we would use it:
Interfaces allow you to define/create a common structure for your classes – to set a standard for objects. Interfaces …
All 5 Replies
rproffitt
2,572
"Nothing to see here."
Moderator
dado.d
0
Newbie Poster
rproffitt
2,572
"Nothing to see here."
Moderator
jeevanism
0
Newbie Poster
pritaeas
2,194
¯\_(ツ)_/¯
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.