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;
}  

Related

Use to convert a string to a valid phone number.

Use to format a date string according to the specified format and timezone.

Use to convert the first character of each word in a string to uppercase.

Use to escape single quotes in a string.