config:
Db1:
dsn: 'mysql:host=localhost;port=3309;dbname=db_1'
user: 'test_user'
password: 'passwd'
Db2:
dsn: 'mysql:host=localhost;port=3309;dbname=db_1'
user: 'test_user'
password: 'passwd'
$this->db1 = new Module\Db($container, $this->_getConfig('Db1'));
$this->db2 = new Module\Db($container, $this->_getConfig('Db2'));
<?php
$string = '<?xml version="1.0"?><stats><breakdown date="2020-02-26"><responses>690292</responses><impressions>103203</impressions><revenue>142.1773</revenue></breakdown><breakdown date="2020-02-27"><responses>679646</responses><impressions>105329</impressions><revenue>60.7610</revenue></breakdown><breakdown date="2020-02-28"><responses>908865</responses><impressions>136551</impressions><revenue>68.2343</revenue></breakdown><breakdown date="2020-02-29"><responses>1268946</responses><impressions>248969</impressions><revenue>91.9452</revenue></breakdown><breakdown date="2020-03-01"><responses>926947</responses><impressions>195786</impressions><revenue>85.0645</revenue></breakdown><breakdown date="2020-03-02"><responses>528795</responses><impressions>67999</impressions><revenue>46.4714</revenue></breakdown><breakdown date="2020-03-03"><responses>903159</responses><impressions>124702</impressions><revenue>100.8346</revenue></breakdown></stats>';
$xml = simplexml_load_string($string);
var_dump($xml->breakdown);
<?php
$text = 'https://example.ru/example/ https://example1.ru/example1 https://example2.ru/example2';
$array = preg_split('~\s+~', $text);
$urls = array_map(function ($split) {
return parse_url($split, PHP_URL_HOST);
}, $array);
var_dump($urls);