DbTools
in package
FinalYes
Common database actions.
Table of Contents
Methods
- prepareListString() : string
- Constructs a partial query for prepared statements of lists.
Methods
prepareListString()
Constructs a partial query for prepared statements of lists.
public
static prepareListString(Countable|array<string|int, mixed>|int $count[, string $repeat = '?' ][, string $glue = ', ' ]) : string
Parameters
- $count : Countable|array<string|int, mixed>|int
-
Amount of times to repeat the string in the $repeat parameter.
- $repeat : string = '?'
-
String to repeat.
- $glue : string = ', '
-
Glue character.
Return values
string —Glued string ready for being thrown into your prepared statement.