IN PHP5 i can declare a const value to a class:
class config
{
const mailserver = 'mx.google.com';
}
But i can also declare public static:
class config
{
public static $mailserver = 'mx.google.com';
}
In case of a config file which i will later us, like:
imap_connect(config::$mailserver ...
imap_connect(config::mailserver ...
Which of the option do you think is better to be used?? (faster, less memory load, etc ..)
Thanks.