@@ 636-640 (lines=5) @@ | ||
633 | } |
|
634 | if ($indexOfFirstTag !== null) { |
|
635 | $items = array(); |
|
636 | foreach ($words as $pos => $s) { |
|
637 | if ($pos >= 0 && $pos < $indexOfFirstTag) { |
|
638 | $items[] = $s; |
|
639 | } |
|
640 | } |
|
641 | if ($indexOfFirstTag > 0) { |
|
642 | array_splice($words, 0, $indexOfFirstTag); |
|
643 | } |
|
@@ 648-652 (lines=5) @@ | ||
645 | return $items; |
|
646 | } else { |
|
647 | $items = array(); |
|
648 | foreach ($words as $pos => $s) { |
|
649 | if ($pos >= 0 && $pos <= count($words)) { |
|
650 | $items[] = $s; |
|
651 | } |
|
652 | } |
|
653 | array_splice($words, 0, count($words)); |
|
654 | ||
655 | return $items; |