<?php
function convertAssociativeArrayToValue(array $data){$result=[];foreach($data as $key=>$value){$result[]="{$key}:{$value}";}}
$parameters=['a'=>2,'b'=>3,'c'=>1];
echo "|parameters:[".implode(",'",convertAssociativeArrayToValue($parameters))."]";
Fatal error: Uncaught TypeError: implode(): Argument #1 ($array) must be of type array, string given in /in/VUPbP:4
Stack trace:
#0 /in/VUPbP(4): implode(','', NULL)
#1 {main}
thrown in /in/VUPbP on line 4
Process exited with code 255.
Fatal error: Uncaught TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in /in/VUPbP:4
Stack trace:
#0 /in/VUPbP(4): implode(','', NULL)
#1 {main}
thrown in /in/VUPbP on line 4
Process exited with code 255.