update() public method
Creates and executes an UPDATE SQL statement. The method will properly escape the column names and bind the values to be updated.
public void update ( $table, $columns, $condition = '', $params = [] )$table string
The table to be updated. $columns array
The column data (name => value) to be updated. $condition
array|string
The conditions that will be put in the WHERE part. Please refer to yii\db\Query::where() on how to specify conditions. $params array