Array Replace/Merge Tests

Run Settings
LanguagePHP
Language Version
Run Command
<?php $base = array( 'labels' => array( 'name' => 'BASE', 'menu_name' => 'Emails' ), 'public' => 'yes', 'private' => 'no', 'supports' => array( 'title', 'editor' ), 'capabilities' => array( 'read_post' => 'no_cap', 'edit_post' => 'no_cap', ), ); $replacements = array( 'labels' => array( 'name' => 'Resumes', ), 'public' => 'no', 'supports' => array( 'author' ), 'capabilities' => array( 'remove_post' => 'no_cap', ), ); $basket = array_replace_recursive($base, $replacements); print_r($basket); //$basket = array_merge_recursive($base, $replacements); //print_r($basket); $basket = array_replace($base, $replacements); print_r($basket); ?>
Editor Settings
Theme
Key bindings
Full width
Lines