To write the shorthand version, you must have PHP 5.5 or greater.
<?php
$arr = array('long', 'version');
$arr2 = ['short', 'version'];
$arr3 = array_merge($arr, $arr2, ['array', 'three', '.']);
There is no installation needed to use these functions; they are part of the PHP core.
To write the shorthand version, you must have PHP 5.5 or greater.
<?php
$arr = array('long', 'version');
$arr2 = ['short', 'version'];
$arr3 = array_merge($arr, $arr2, ['array', 'three', '.']);