PHP code example of xety / arrayor
1. Go to this page and download the library: Download xety/arrayor library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
xety / arrayor example snippets
php
$array = [
'Index key' => 1,
'key_index' => 2
];
$result = Arrayor::camelizeIndex($array);
$result = [
'indexKey' => 1,
'keyIndex' => 2
];
php
$array = [
'key-index' => 1,
'key index' => 'value'
];
$string = Arrayor::implodeRecursive($array);
$string = 'key-index : 1 | key index : value';