3v4l.org

run code in 150+ 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_keys($fields)); }
based on kKaNU
Output for 4.3.0 - 7.1.0
ebben SET ezt = ?0