Inheritance | yii\db\pgsql\ArrayParser |
---|---|
Available since version | 2.0.14 |
Source Code | https://github.com/yiisoft/yii2/blob/master/framework/db/pgsql/ArrayParser.php |
The class converts PostgreSQL array representation to PHP array
Method | Description | Defined By |
---|---|---|
parse() | Convert array from PostgreSQL to PHP | yii\db\pgsql\ArrayParser |
Convert array from PostgreSQL to PHP
public function parse($value)
{
if ($value === null) {
return null;
}
if ($value === '{}') {
return [];
}
return $this->parseArray($value);
}