Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #36590, comment 9


Ignore:
Timestamp:
04/20/2016 09:58:46 PM (9 years ago)
Author:
keraweb
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36590, comment 9

    v1 v2  
    33{{{array_merge_recursive()}}} won't work because it appends new values.
    44You'll need to use {{{array_replace_recursive()}}} to properly add the values. (see [https://3v4l.org/tKr5Z this example])
     5''EDIT NOTE: We don't have to worry about the replace part in this case. All key values should be unique (otherwise the normal post would'nt work either)''
    56
    67Also, how does the {{{preg_match()}}} compare to a {{{explode()}}} performance wise? I've understood that a preg_match is a relatively heavy function to use. Not sure though :-)