Expand|Select|Wrap|Line Numbers
- $partsCopy = $this->_parts;
- $pos = array_search($newOrder[0], $this->_order);
- $this->_parts[0] = $partsCopy[$pos];
- $pos = array_search($newOrder[1], $this->_order);
- $this->_parts[1] = $partsCopy[$pos];
- $pos = array_search($newOrder[2], $this->_order);
- $this->_parts[2] = $partsCopy[$pos];
Expand|Select|Wrap|Line Numbers
- $partsCopy = $this->_parts;
- for ($i = 0; $i < 3; $i++) {
- $pos = array_search($newOrder[$i], $this->_order);
- $this->_parts[$i] = $partsCopy[$pos];
- }
if you have any suggestions let me know