PHPDaemon/Clients/Asterisk/Pool.php 1 location
|
@@ 54-57 (lines=4) @@
|
51 |
|
public static function prepareEnv($data) { |
52 |
|
$result = []; |
53 |
|
$rows = explode("\n", $data); |
54 |
|
for ($i = 0, $s = sizeof($rows); $i < $s; ++$i) { |
55 |
|
$e = self::extract($rows[$i]); |
56 |
|
$result[$e[0]] = $e[1]; |
57 |
|
} |
58 |
|
return $result; |
59 |
|
} |
60 |
|
|
PHPDaemon/Clients/Redis/Connection.php 1 location
|
@@ 237-239 (lines=3) @@
|
234 |
|
*/ |
235 |
|
public function arrayToHash($array) { |
236 |
|
$hash = []; |
237 |
|
for ($i = 0, $s = sizeof($array) - 1; $i < $s; ++$i) { |
238 |
|
$hash[$array[$i]] = $array[++$i]; |
239 |
|
} |
240 |
|
return $hash; |
241 |
|
} |
242 |
|
|