You are here

function Utils::wf_crm_explode_multivalue_str in Webform CiviCRM Integration 8.5

Parameters

string:

Return value

array

Overrides UtilsInterface::wf_crm_explode_multivalue_str

File

src/Utils.php, line 859
Webform CiviCRM module's common utility functions.

Class

Utils

Namespace

Drupal\webform_civicrm

Code

function wf_crm_explode_multivalue_str($str) {
  $sp = \CRM_Core_DAO::VALUE_SEPARATOR;
  if (is_array($str)) {
    return $str;
  }
  return explode($sp, trim((string) $str, $sp));
}