Skip to main content

rgexplode()

function rgexplode( $sep, $string, $min_count, $on_last_sep=false )

Converts a delimiter separated string to an array.

Since:

  • Unknown
  • 2.9.30 (Added the optional $on_last_sep param.)

Source: gravityforms.php:7210

Parameters

NameTypeDefaultDescription
$sepstringThe delimiter between values
$stringstringThe string to convert
$min_countintThe minimum number of items in the resulting array
$on_last_sepboolfalseOptional. If true, the split occurs on the last instance of the delimiter. Defaults to false.

Returns

  • array — $ary The exploded array