Closed zessx closed 10 years ago
you have a forgotten var_dump() at line 202. please replace array_push at line 217 with $values[] = $value.
Sorry for this forgotten var_dump()
.
Any reason to prefer $values[] = $value
over array_push($values, $value)
?
Allow user to set multiples values for a single key.
Examples :
Tests :
Empty string :
_buildWhere()
No parameters :
_buildWhere('year = 2014')
Bind an integer :
_buildWhere(array('year' => 2014))
Bind a string :
_buildWhere(array('year' => '2014'))
Bind an array :
_buildWhere(array('year' => array('2014', '2015')))
Bind a string plus an array :
_buildWhere(array('year' => '2014', 'month' => array('jan', 'fev')))
Bind an array plus a string :
_buildWhere(array('year' => array('2014', '2015'), 'month' => 'jan'))
Bind two arrays :
_buildWhere(array('year' => array('2014', '2015'), 'month' => array('jan', 'fev')))