Make WordPress Core

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


Ignore:
Timestamp:
04/20/2016 09:59:37 PM (8 years ago)
Author:
keraweb
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36590, comment 9

    v2 v3  
    55''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)''
    66
    7 Also, 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 :-)
     7Also, how does the {{{preg_match()}}} compare to {{{explode()}}} performance wise? I've understood that a preg_match is a relatively heavy function to use. Not sure though :-)
    88
    99Also, the current function does the array merge on the whole $_POST value. I can imagine with larger menu's this can get slower than to do this merge/replace on the first array key that is found. The code has a lot less to loop through for every new key that is found.