Base58 Encode and Decode

Base58 is an encoding and decoding scheme that is used to convert binary data to an printable ASCII text format, and vice versa. It is commonly used to transfer binary…

Base32 Encode and Decode

Base32 is an encoding and decoding scheme that is used to convert binary data to an printable ASCII text format, and vice versa. It is commonly used to transfer binary…
Constructor Property Promotion in PHP 8.0

Constructor Property Promotion in PHP 8.0

Properties are class member variables that stores values like strings, integers, booleans, etc. We can set properties via class constructor, setter method or directly if property is public. When we…
Using WeakMap in PHP 8.0

Using WeakMap in PHP 8.0

The SplObjectStorage class allows to store additional data about objects. Objects are stored as keys and associated data as values. In other words, this class allows to create a map…