3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $queryArray = array( 'ebben' => array( //$changes 'ezt' => 'erre', //No escape 'ezt' => 'nes:erre', array( //$condition 'where' => array( 'ez' => 'ezzel' ) ) ) ); //'UPDATE _table_ SET _field_ = _value_ WHERE _field_ = _value_'; foreach($queryArray as $table => $fields) { print $table . ' SET ' . implode(',', array_fill(0, count(array_keys($fields)), '?')); }
based on 2btCJ
Output for 4.3.0 - 7.2.0
ebben SET ?,?