BcMath\Number::__unserialize

(PHP 8 >= 8.4.0)

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

说明

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

Deserializes a data parameter into a BcMath\Number object.

参数

data
The serialized data parameter as an associative array

错误/异常

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

参见

添加备注

用户贡献的备注 1 note

up
-1
oldiesmann at gmail dot com
11 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