Answer the question
In order to leave comments, you need to log in
How to configure PHP file to work with PostgreSQL instead of MYSQL?
we have a configuration file
<?php
return [
'db' => [
'driver' => 'Pdo',
'dsn' => 'mysql:dbname=dddddd; host=111.111.111.115',
'username' => 'nnnnnnn',
'password' => 'fffffff',
'driver_options' => [
PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8",
],
],
'service_manager' => [
'factories' => [
'dbAdapter' => \Zend\Db\Adapter\AdapterServiceFactory::class,
],
],
];
Answer the question
In order to leave comments, you need to log in
Then, that '0' == 48, and the indexing of the ndigit array (like any other) starts from zero.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question