Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Finds whether a variable is an array
<?php is_array(mixed $value): bool
<?php private static function renderValue($value): string
{
if (is_array($value)) {
return self::renderParams($value);
}
<?php $this->hasColumns = true;
$fields = $meta->fetch_fields();
assert(is_array($fields));
$this->columnNames = array_map(static function (stdClass $field): string {
return $field->name;
<?php throw Exception::new($exception);
}
assert(is_array($data));
return $data;
}
<?php public function addSql($sql)
{
if (is_array($sql)) {
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/issues/3580',
<?php );
}
$this->sql = array_merge($this->sql, is_array($sql) ? $sql : func_get_args());
return $this;
}
<?php public function addSql($sql)
{
$this->sql = array_merge($this->sql, is_array($sql) ? $sql : func_get_args());
return $this;
}
<?php public function addSql($sql)
{
$this->sql = array_merge($this->sql, is_array($sql) ? $sql : func_get_args());
return $this;
}
<?php public function addSql($sql)
{
$this->sql = array_merge($this->sql, is_array($sql) ? $sql : func_get_args());
return $this;
}
<?php public function addSql($sql)
{
$this->sql = array_merge($this->sql, is_array($sql) ? $sql : func_get_args());
return $this;
}
<?php public function addSql($sql)
{
$this->sql = array_merge($this->sql, is_array($sql) ? $sql : func_get_args());
return $this;
}
<?php public function addSql($sql)
{
$this->sql = array_merge($this->sql, is_array($sql) ? $sql : func_get_args());
return $this;
}
<?php $this->initializeCommentedDoctrineTypes();
}
assert(is_array($this->doctrineTypeComments));
return in_array($doctrineType->getName(), $this->doctrineTypeComments, true);
}
<?php $this->initializeCommentedDoctrineTypes();
}
assert(is_array($this->doctrineTypeComments));
$this->doctrineTypeComments[] = $doctrineType instanceof Type ? $doctrineType->getName() : $doctrineType;
}
<?php $ret = [];
foreach ($columns as $column => $definition) {
if (is_array($definition)) {
$ret[] = $column;
} else {
$ret[] = $definition;
<?php public function convertBooleans($item)
{
if (is_array($item)) {
foreach ($item as $k => $value) {
if (! is_bool($value)) {
continue;