Skip to content

Proposition::base64Strings()

Jonathan Gjertsen edited this page Jun 18, 2017 · 5 revisions

Syntax

$proposition->given(Proposition::base64Strings($max_len, $url_variant);

Provides a stream of base64 strings up to a length of $max_len. If $url_variant is true, 62 and 63 will be represented as "-" and "_" respectively, instead of the default "+" and "/". Also, if $url_variant is false, the string will be padded with "=", similar to the behaviour of base64encode().

Other options

See String generator overview for a list of all string generators.