collect
reactphp/promise
The
collect
function creates a
collection
instance from the given value:
<?php $collection
=
collect
([
'taylor'
,
'abigail'
]);