function FetchModeTrait::assocToNum

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Database/FetchModeTrait.php \Drupal\Core\Database\FetchModeTrait::assocToNum()

Converts a row of data in FETCH_ASSOC format to FETCH_NUM.

Parameters

array $rowAssoc: A row of data in FETCH_ASSOC format.

Return value

array The row in FETCH_NUM format.

File

core/lib/Drupal/Core/Database/FetchModeTrait.php, line 54

Class

FetchModeTrait
Provide helper methods for statement fetching.

Namespace

Drupal\Core\Database

Code

protected function assocToNum(array $rowAssoc) : array {
    return array_values($rowAssoc);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.