- var_export: documentation ( source)
- array_flip: documentation ( source)
<?php
$array = array(
'value1' => 'key1',
'value2' => 'key2',
'value3' => 'key3',
'value4' => 'key4',
);
//typed it the wrong way and need to flip it
var_export(array_flip($array));