Overview

Namespaces

  • None
  • RedBeanPHP
    • Adapter
    • BeanHelper
    • Cursor
    • Driver
    • Logger
      • RDefault
    • QueryWriter
    • RedException
    • Repository
    • Util

Classes

  • ArrayTool
  • DispenseHelper
  • Dump
  • MultiLoader
  • Transaction
  • Overview
  • Namespace
  • Class

Class ArrayTool

Array Tool Helper

This code was originally part of the facade, however it has been decided to remove unique features to service classes like this to make them available to developers not using the facade class.

This is a helper or service class containing frequently used array functions for dealing with SQL queries.

Namespace: RedBeanPHP\Util
Copyright:

copyright (c) G.J.G.T. (Gabor) de Mooij and the RedBeanPHP Community This source file is subject to the BSD/GPLv2 License that is bundled with this source code in the file license.txt.


License: BSD/GPLv2
Author: Gabor de Mooij and the RedBeanPHP Community
File: RedBeanPHP/Util/ArrayTool.php
Located at Util/ArrayTool.php
Methods summary
public static string
# genSlots( array $array, $template = NULL )

Generates question mark slots for an array of values.

Generates question mark slots for an array of values.

Parameters

$array
array to generate question mark slots for
$template

Returns

string
public static array
# flat( array $array, array $result = array() )

Flattens a multi dimensional bindings array for use with genSlots().

Flattens a multi dimensional bindings array for use with genSlots().

Parameters

$array
array to flatten
$result
result array parameter (for recursion)

Returns

array
API documentation generated by ApiGen