D
D
Dmitry Baskakov2018-02-13 09:04:57
PHP
Dmitry Baskakov, 2018-02-13 09:04:57

How to use mysqli class in own class with namespace?

How to use mysqli class in own class with namespace?
The question is in the title.
If anyone knows how to do this I would be grateful.
A little more detail:
There is a class that uses a namespace. In its constructor there is a connection to the database, which is done something like this
$mysqli = new mysqli($sr, $lg, $ps, $tb);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2018-02-13
@dmitrybascacov

new \mysqli...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question