<?php class Language{ private $LANG = array(); /* ERROR CODE 1 DATABASE 2 EMPTY USERNAME AND PASSWORD */ function __construct() { //1 DATABASE $this->LANG[1]["TITLE"] = "DATABASE CONNECTION ERROR"; $this->LANG[1]["MESSAGE"] = "PLEASE CONTACT YOUR ADMISTRATOR"; //2 EMPTY USERNAME AND PASSWORD $this->LANG[2]["TITLE"] = "LOGIN ERROR"; $this->LANG[2]["MESSAGE"] = "INVALID USERNAME OR PASSWORD"; //3 EMPTY QUERY ERROR $this->LANG[3]["TITLE"] = "ERROR"; $this->LANG[3]["MESSAGE"] = "UNABLE TO COMMUNICATE WITH SERVER"; } function getData() { return $this->LANG; } } $l = new Language(); var_dump($l->getData());
You have javascript disabled. You will not be able to edit any code.