php - Multiple require_once of a file

Solution:
The logic to dispatch an email should be wrapped in a function which you can then call, with the appropriate parameters, at any point in your program. For example:
function sendMyEmail($recipient, $subject, $message)
{ ... }
You could of course build a class, a series of functions, really any sort of legitimate reusable facility and this would alleviate the problem both now and in the future.
HTH
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: warning: a non-numeric value encountered in
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.