lp__serialize_to_str( $value, $separator="," )
Parses an array serialized as a string and returns it as a concatenated string using the specified separator.
Plugin
Namespace
Launchpad
Parameters
string
$value
The serialized array string to be parsed.
string
$separator
The separator used to concatenate the array values in the resulting string.
Return
string
The resulting string after parsing the serialized array.
Source
File: \includes\lp-utility-functions.php
function lp__serialize_to_str( $value, $separator = ", " ){
$val = unserialize( $value );
$val = is_array( $val ) ? implode( $separator, $val ) : ( $val ? $val : "" );
return $val;
}