while using the following constructor
$this->pdo = new PDO ($this->source, $this->username, $this->password);
if I do not have any password then should I pass a NuLL value for creating a new instance of PDO?
while using the following constructor
$this->pdo = new PDO ($this->source, $this->username, $this->password);
if I do not have any password then should I pass a NuLL value for creating a new instance of PDO?
Have you checked the documentation?
PDO::__construct ( string $dsn [, string $username [, string $password [, array $driver_options ]]] )
The only required parameter is the DSN, username and password are optional.