BcMath\Number::__unserialize

(PHP 8 >= 8.4.0)

BcMath\Number::__unserializeDeserializes a data parameter into a BcMath\Number object

Description

public BcMath\Number::__unserialize(array $data): void

Deserializes a data parameter into a BcMath\Number object.

Parameters

data
The serialized data parameter as an associative array

Errors/Exceptions

This method throws a ValueError if invalid serialized data is passed.

See Also

add a note

User Contributed Notes 1 note

up
-1
oldiesmann at gmail dot com
16 days ago
This function doesn't appear to work at all. You have to create a new BCMath\Number object to use it, at which point it attempts to overwrite the value of said object - and of course that won't work because BCMath\Number::$value is readonly.
To Top