PHPDaemon/Clients/Redis/Connection.php 1 location
|
@@ 233-235 (lines=3) @@
|
230 |
|
public function arrayToHash($array) |
231 |
|
{ |
232 |
|
$hash = []; |
233 |
|
for ($i = 0, $s = sizeof($array) - 1; $i < $s; ++$i) { |
234 |
|
$hash[$array[$i]] = $array[++$i]; |
235 |
|
} |
236 |
|
return $hash; |
237 |
|
} |
238 |
|
|
PHPDaemon/Clients/Asterisk/Pool.php 1 location
|
@@ 31-34 (lines=4) @@
|
28 |
|
{ |
29 |
|
$result = []; |
30 |
|
$rows = explode("\n", $data); |
31 |
|
for ($i = 0, $s = sizeof($rows); $i < $s; ++$i) { |
32 |
|
$e = self::extract($rows[$i]); |
33 |
|
$result[$e[0]] = $e[1]; |
34 |
|
} |
35 |
|
return $result; |
36 |
|
} |
37 |
|
|