Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FetchModeTrait.php

function 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);
}
RSS feed
Powered by Drupal