Alias of mysqli::__construct

- « Aliases and deprecated Mysqli Functions

- mysqli::escape_string »

- PHP Manual
- Aliases and deprecated Mysqli Functions
- Alias of mysqli::__construct

# mysqli_connect

(PHP 5, PHP 7, PHP 8)

mysqli_connect — Alias of mysqli::__construct()

### Description

This function is an alias of: mysqli::__construct()

> Note:

> If mysqli exception mode is not enabled and a connection fails, then mysqli_connect() returns `false` instead of an object. The mysqli_connect_error() function can be used to fetch the connection error.