Changes between Version 2 and Version 3 of Ticket #36590, comment 9
- Timestamp:
- 04/20/2016 09:59:37 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #36590, comment 9
v2 v3 5 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)'' 6 6 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 :-)7 Also, 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 :-) 8 8 9 9 Also, 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.