How do i use/assign a defined variable in my config file to a member variable of the class without using the constructor method like below
require('config.php');
class MyClass{
public $email=MY_EMAIL_FROM_CONFIG;
function MyClass(){
}
....
}
this direct assignment gives me a error, any other ways ? OR any explanation why this has been not allowed in PHP ?