In this quick tip, Tonya shows you how to reduce your code when you want to merge default parameters (settings) together with the implement. She shows you a shortcode example from WordPress which uses a foreach()
to accomplish what one line of code and do, i.e. using array_merge
.
Did you learn something new? Share your thoughts.