Is it possible to include a file with PHP variables inside a class? And what would be the best way so I can access the data inside the whole class?
I have been googling this for a while, but none of the examples worked.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The best way is to load them, not to include them via an external file.
For example: