\CryptoManana\Core\Interfaces\ContainersElementPickingInterface

Interface ElementPickingInterface - Interface for element picking capabilities.

Summary

Methods
Constants
pickCharacterElement()
pickArrayElement()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

pickCharacterElement()

pickCharacterElement(string  $string = '') : string

Pick a random character from string.

Parameters

string $string

The string with characters for choosing from.

Returns

string —

The chosen character string.

pickArrayElement()

pickArrayElement(array  $array = array()) : mixed

Pick a random element from array.

Parameters

array $array

The array with elements for choosing from.

Returns

mixed —

The chosen element from the array.