1:"$Sreact.fragment"
2:I[14627,["8173","static/chunks/8173-c3ed3bc2d0ae7ca8.js","7525","static/chunks/7525-7a1a5e1511dea190.js","7177","static/chunks/app/layout-11e1d5e45067277c.js"],"ThemeProvider"]
3:I[82025,["8173","static/chunks/8173-c3ed3bc2d0ae7ca8.js","7525","static/chunks/7525-7a1a5e1511dea190.js","7177","static/chunks/app/layout-11e1d5e45067277c.js"],"default"]
4:I[46525,["8173","static/chunks/8173-c3ed3bc2d0ae7ca8.js","7525","static/chunks/7525-7a1a5e1511dea190.js","7177","static/chunks/app/layout-11e1d5e45067277c.js"],"default"]
5:I[15244,[],""]
6:I[43866,[],""]
7:I[30191,["8173","static/chunks/8173-c3ed3bc2d0ae7ca8.js","406","static/chunks/406-889913e11df0a888.js","5680","static/chunks/app/utilities/arrays/page-f16b2369fe166435.js"],"default",1]
9:I[48173,["8173","static/chunks/8173-c3ed3bc2d0ae7ca8.js","406","static/chunks/406-889913e11df0a888.js","5680","static/chunks/app/utilities/arrays/page-f16b2369fe166435.js"],""]
a:I[86213,[],"OutletBoundary"]
c:I[86213,[],"MetadataBoundary"]
e:I[86213,[],"ViewportBoundary"]
10:I[34835,[],""]
:HL["/_next/static/media/a34f9d1faa5f3315-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
:HL["/_next/static/css/7372fd73fc9f904e.css","style"]
8:T531,// Merge default configuration with user configuration
function get_merged_config() {
// Default configuration
$default_config = [
'site' => [
'title' => 'Default Site Title',
'description' => 'Default site description',
'logo' => '/images/default-logo.png'
],
'features' => [
'comments' => true,
'social' => [
'facebook' => true,
'twitter' => true,
'instagram' => false
]
],
'performance' => [
'cache' => true,
'minify' => [
'css' => true,
'js' => true,
'html' => false
]
]
];
// User configuration
$user_config = [
'site' => [
'title' => 'My Custom Site',
'logo' => '/images/custom-logo.png'
],
'features' => [
'social' => [
'facebook' => false,
'instagram' => true
]
],
'performance' => [
'minify' => [
'css' => false
]
]
];
// Merge configurations
return cbo_array_merge_recursive($default_config, $user_config);
}
// Usage
$config = get_merged_config();
echo 'Site Title: ' . $config['site']['title'] . '
';
echo 'Cache Enabled: ' . ($config['performance']['cache'] ? 'Yes' : 'No') . '
';
echo 'Facebook Enabled: ' . ($config['features']['social']['facebook'] ? 'Yes' : 'No') . '
';0:{"P":null,"b":"ds2nZAjgJ_uSRgCt4uMw0","p":"","c":["","utilities","arrays"],"i":false,"f":[[["",{"children":["utilities",{"children":["arrays",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/7372fd73fc9f904e.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__className_d65c78","children":["$","$L2",null,{"attribute":"class","defaultTheme":"light","enableSystem":true,"disableTransitionOnChange":true,"children":["$","div",null,{"className":"flex flex-col min-h-screen","children":[["$","$L3",null,{}],["$","div",null,{"className":"flex flex-1 flex-col md:flex-row mt-16 md:mt-16","children":[["$","$L4",null,{}],["$","main",null,{"className":"flex-1 p-4 md:p-8 pb-16","children":["$","div",null,{"className":"container mx-auto max-w-4xl","children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],["$","footer",null,{"className":"border-t border-border py-6 bg-muted/40","children":["$","div",null,{"className":"container mx-auto px-4 md:px-6","children":["$","div",null,{"className":"flex flex-col md:flex-row justify-between items-center","children":[["$","div",null,{"className":"mb-4 md:mb-0","children":["$","p",null,{"className":"text-sm text-muted-foreground","children":["© ",2025," Combo WordPress Plugin. All rights reserved."]}]}],["$","div",null,{"className":"flex space-x-6","children":[["$","a",null,{"href":"#","className":"text-sm text-muted-foreground hover:text-foreground transition-colors","children":"Privacy Policy"}],["$","a",null,{"href":"#","className":"text-sm text-muted-foreground hover:text-foreground transition-colors","children":"Terms of Service"}],["$","a",null,{"href":"#","className":"text-sm text-muted-foreground hover:text-foreground transition-colors","children":"Contact"}]]}]]}]}]}]]}]}]}]}]]}],{"children":["utilities",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","utilities","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["arrays",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","utilities","children","arrays","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","div",null,{"className":"space-y-8","children":[["$","div",null,{"children":[["$","h1",null,{"className":"text-3xl font-bold tracking-tight mb-4","children":"Arrays"}],["$","p",null,{"className":"text-muted-foreground","children":"The arrays utility function provides a tool for merging arrays recursively with improved handling compared to PHP's native array_merge_recursive function."}]]}],["$","div",null,{"className":"space-y-4","children":[["$","h2",null,{"className":"text-xl font-semibold","children":"Available Function"}],["$","div",null,{"className":"space-y-6","children":["$","div",null,{"children":[["$","h3",null,{"className":"text-lg font-medium","children":"cbo_array_merge_recursive(array $array1, array $array2, array...$arrays)"}],["$","p",null,{"className":"text-muted-foreground mb-2","children":"Merges arrays recursively with improved handling compared to PHP's native array_merge_recursive function."}],["$","h4",null,{"className":"text-base font-medium mt-4","children":"Parameters:"}],["$","ul",null,{"className":"list-disc pl-6 space-y-2 text-muted-foreground","children":[["$","li",null,{"children":[["$","code",null,{"className":"px-1 py-0.5 bg-muted rounded text-sm","children":"$$array1"}],": The base array."]}],["$","li",null,{"children":[["$","code",null,{"className":"px-1 py-0.5 bg-muted rounded text-sm","children":"$$array2"}],": The array to merge with the base array."]}],["$","li",null,{"children":[["$","code",null,{"className":"px-1 py-0.5 bg-muted rounded text-sm","children":"$$arrays"}],": Additional arrays to merge."]}]]}],["$","h4",null,{"className":"text-base font-medium mt-4","children":"Return Value:"}],["$","p",null,{"className":"text-muted-foreground","children":"Returns the merged array."}],["$","$L7",null,{"code":"// Merge two arrays recursively\n$array1 = [\n 'colors' => [\n 'red' => '#ff0000',\n 'green' => '#00ff00'\n ],\n 'sizes' => ['small', 'medium']\n];\n\n$array2 = [\n 'colors' => [\n 'blue' => '#0000ff',\n 'green' => '#00cc00' // This will override the green in array1\n ],\n 'sizes' => ['large'] // This will be merged with sizes in array1\n];\n\n$merged = cbo_array_merge_recursive($array1, $array2);\n\n// Result:\n// [\n// 'colors' => [\n// 'red' => '#ff0000',\n// 'green' => '#00cc00', // Value from array2 overrides array1\n// 'blue' => '#0000ff'\n// ],\n// 'sizes' => ['small', 'medium', 'large'] // Values are merged\n// ]","language":"php"}]]}]}]]}],["$","div",null,{"className":"space-y-4","children":[["$","h2",null,{"className":"text-xl font-semibold","children":"Comparison with PHP's array_merge_recursive"}],["$","p",null,{"className":"text-muted-foreground","children":["The main difference between"," ",["$","code",null,{"className":"px-1 py-0.5 bg-muted rounded text-sm","children":"cbo_array_merge_recursive"}]," and PHP's native"," ",["$","code",null,{"className":"px-1 py-0.5 bg-muted rounded text-sm","children":"array_merge_recursive"}]," is how they handle string keys with the same name:"]}],["$","ul",null,{"className":"list-disc pl-6 space-y-2 text-muted-foreground","children":[["$","li",null,{"children":[["$","strong",null,{"children":"array_merge_recursive"}],": Creates an array of values when keys are the same."]}],["$","li",null,{"children":[["$","strong",null,{"children":"cbo_array_merge_recursive"}],": Overwrites the value with the one from the second array."]}]]}],["$","$L7",null,{"code":"// PHP's array_merge_recursive\n$array1 = ['key' => 'value1'];\n$array2 = ['key' => 'value2'];\n\n$result1 = array_merge_recursive($array1, $array2);\n// Result: ['key' => ['value1', 'value2']]\n\n// cbo_array_merge_recursive\n$result2 = cbo_array_merge_recursive($array1, $array2);\n// Result: ['key' => 'value2']","language":"php"}]]}],["$","div",null,{"className":"space-y-4","children":[["$","h2",null,{"className":"text-xl font-semibold","children":"Usage Examples"}],["$","div",null,{"className":"space-y-6","children":[["$","div",null,{"children":[["$","h3",null,{"className":"text-lg font-medium","children":"Merging Configuration Arrays"}],["$","$L7",null,{"code":"$8","language":"php"}]]}],["$","div",null,{"children":[["$","h3",null,{"className":"text-lg font-medium","children":"Merging Theme Options"}],["$","$L7",null,{"code":"// Merge theme options with defaults\nfunction get_theme_options() {\n // Default theme options\n $defaults = [\n 'colors' => [\n 'primary' => '#0073aa',\n 'secondary' => '#23282d',\n 'background' => '#ffffff',\n 'text' => '#333333'\n ],\n 'typography' => [\n 'body_font' => 'Arial, sans-serif',\n 'heading_font' => 'Georgia, serif',\n 'base_size' => '16px',\n 'line_height' => '1.5'\n ],\n 'layout' => [\n 'container_width' => '1200px',\n 'sidebar' => 'right',\n 'header_style' => 'default'\n ]\n ];\n \n // Get saved options from database\n $saved_options = get_option('theme_options', []);\n \n // Merge with defaults\n return cbo_array_merge_recursive($defaults, $saved_options);\n}\n\n// Usage\n$options = get_theme_options();\necho 'Primary Color: ' . $options['colors']['primary'] . '
';\necho 'Body Font: ' . $options['typography']['body_font'] . '
';\necho 'Container Width: ' . $options['layout']['container_width'] . '
';","language":"php"}]]}]]}]]}],["$","div",null,{"className":"space-y-4","children":[["$","h2",null,{"className":"text-xl font-semibold","children":"Best Practices"}],["$","ul",null,{"className":"list-disc pl-6 space-y-2 text-muted-foreground","children":[["$","li",null,{"children":[["$","strong",null,{"children":"Use cbo_array_merge_recursive"}]," instead of PHP's native array_merge_recursive when you want to override values rather than create arrays of values."]}],["$","li",null,{"children":[["$","strong",null,{"children":"Use for configuration arrays"}]," where you want to merge default settings with user settings."]}],["$","li",null,{"children":[["$","strong",null,{"children":"Be aware of the behavior"}]," with numeric keys, which will be reindexed just like with PHP's array_merge."]}],["$","li",null,{"children":[["$","strong",null,{"children":"Consider performance"}]," when merging large arrays, as recursive operations can be resource-intensive."]}]]}]]}],["$","div",null,{"className":"mt-8 border-t border-border pt-6","children":["$","div",null,{"className":"flex justify-between","children":[["$","$L9",null,{"href":"/utilities/dummy-content","className":"text-primary hover:underline","children":"← Dummy Content"}],["$","$L9",null,{"href":"/utilities/fields","className":"text-primary hover:underline","children":"Fields →"}]]}]}]]}],null,["$","$La",null,{"children":"$Lb"}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","qOpDlIiCEZ7zjZ667235h",{"children":[["$","$Lc",null,{"children":"$Ld"}],["$","$Le",null,{"children":"$Lf"}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}]]}],false]],"m":"$undefined","G":["$10","$undefined"],"s":false,"S":true}
f:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
d:[["$","meta","0",{"charSet":"utf-8"}],["$","title","1",{"children":"Combo WordPress Plugin Documentation"}],["$","meta","2",{"name":"description","content":"Documentation for the Combo WordPress plugin - A powerful configuration system and optimization toolkit"}],["$","meta","3",{"name":"generator","content":"v0.dev"}]]
b:null