bp_document_unserialize_deep( [type] $var )

Unserializes a variable until reaching a non-serialized value

Description

Parameters

$var

(Required)

Return

(void)

Source

File: bp-document/bp-document-functions.php

function bp_document_unserialize_deep( $var ) {
	while ( is_serialized( $var ) ) {
		$var = @unserialize( $var );
	}

	return $var;
}

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.