Skip to content

Kirby 4.5.0

$query->select()

Sets the columns, which should be selected from the table By default all columns will be selected

$query->select(array|string|null $select): Kirby\Database\Query

Parameters

Name Type Default Description
$select * array|string|null Pass either a string of columns or an array

Return type

Kirby\Database\Query

This method does not modify the existing $query object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Database\Query