Creates a new Arrays object with the same items.

/**
 * Creates a new Arrays object with the same items.
 *
 * @return self Returns instance of The Arrays class.
 */
public function copy(): self

Examples

$foo = Arrays::create(['foo', 'bar']);
$bar = $foo->copy();

Getting Started

Methods