sql::values($values, $separator = ', ', $set = true)

Builds a safe list of values for insert, select or update queries

  • $values (mixed)
    A value string or array of values
  • $separator (string)
    A separator which should be used to join values
  • $set (boolean)
    If true builds a set list of values for update clauses
  • return (string)

Is something missing or incorrect? Edit this page on Github…