Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class DB
- {
- // объявление свойств
- protected $host = 'localhost';
- protected $db = 'db';
- protected $charset = 'utf8';
- protected $user = 'user';
- protected $pass = 'pwd';
- public function __construct() {
- // создание подключения к БД
- }
- // другие методы класса
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement