- array_map: documentation ( source)
- array_combine: documentation ( source)
- var_export: documentation ( source)
- array_keys: documentation ( source)
<?php
$myArray = [
"key0" => 0,
"key1" => 1,
"key2" => 2
];
var_export(
array_combine(
array_keys($myArray),
array_map('strval', $myArray)
)
);