WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/09/2016 10:59:02 PM (5 years ago)
Author:
johnbillion
Message:

Docs: Improve the documentation for parameters which accept OBJECT, ARRAY_A, and ARRAY_N as parameters.

See #37770

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/wp-db.php

    r38580 r39188  
    22952295     *
    22962296     * @param string|null $query  SQL query.
    2297      * @param string      $output Optional. one of ARRAY_A | ARRAY_N | OBJECT constants.
    2298      *                            Return an associative array (column => value, ...),
    2299      *                            a numerically indexed array (0 => value, ...) or
    2300      *                            an object ( ->column = value ), respectively.
     2297     * @param string      $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to
     2298     *                            an stdClass object, an associative array, or a numeric array, respectively. Default OBJECT.
    23012299     * @param int         $y      Optional. Row to return. Indexed from 0.
    23022300     * @return array|object|null|void Database query result in format specified by $output or null on failure
Note: See TracChangeset for help on using the changeset viewer.