Showing posts with label array_combine(). Show all posts
Showing posts with label array_combine(). Show all posts

PHP : Replace the keys in an array with another set

In this tutorial learn how to replace the keys in an array with another set of keys in php.


function replaceKeys($array, $keys)
    {
        $values = array_values($array);

        return array_combine($keys, $values);
    }

how to call ssh from vs code

 To call SSH from VS Code, you can use the built-in Remote Development extension. This extension allows you to open a remote folder or works...