PHPDaemon\Clients\Asterisk\Pool::prepareEnv PHP Method

prepareEnv() public static method

Prepares environment scope
public static prepareEnv ( string $data ) : array
$data string Address
return array
    public static function prepareEnv($data)
    {
        $result = [];
        $rows = explode("\n", $data);
        for ($i = 0, $s = sizeof($rows); $i < $s; ++$i) {
            $e = self::extract($rows[$i]);
            $result[$e[0]] = $e[1];
        }
        return $result;
    }