my question is that the in PHP language config.ini file is the best place to store database credentials?
I have used config.php file so for to store my database credentials.
<?php
$config = [
// Database informations
"database" => [
"databaseName" => "learning",
"userName" => "root",
"host" => "localhost",
"password" => ""
]