With PHP version 7.2 I just used nd_mysqli instead of mysqli and it worked as expected.
Steps to enable it into godaddy hosting server-
- Login to cpanel.
- Click on “Select PHP version”.
- As provided the snapshot of the latest configurations uncheck “mysqli” and enable “nd_mysqli”.