public function getDatabaseInfo()
    {
        $parts = explode(':', $this->database_host);

        $info = array(
            'host' => $parts[0],
            'port' => isset($parts[1]) ? $parts[1] : '3306',
            'user' => $this->database_user,
            'password' => $this->database_password,
            'name' => $this->database_name,
            'prefix' => $this->database_prefix
        );

        return $info;
    }
public function getDatabaseInfo()
    {
        $parts = explode(':', $this->database_host);

        $info = array(
            'host' => $parts[0],
            'port' => isset($parts[1]) ? $parts[1] : '3306',
            'user' => $this->database_user,
            'password' => $this->database_password,
            'name' => $this->database_name,
            'prefix' => $this->database_prefix
        );

        return $info;
    }
public function getDatabaseInfo ( ) { $ parts = explode ( ':' , $ this -> database_host ) ; $ info = array ( 'host' => $ parts [ 0 ] , 'port' => isset ( $ parts [ 1 ] ) ? $ parts [ 1 ] : '3306' , 'user' => $ this -> database_user , 'password' => $ this -> database_password , 'name' => $ this -> database_name , 'prefix' => $ this -> database_prefix ) ; return $ info ; }
Get the database info

@return array
Get the database info