| @@ 664-676 (lines=13) @@ | ||
| 661 | * @param mixed|self $end An integer, or a number that can be represented as integers (such as 2.0), that specifies the ending index position for the search. Can be any valid expression that resolves to a non-negative integral number. |
|
| 662 | * @return $this |
|
| 663 | */ |
|
| 664 | public function indexOfArray($arrayExpression, $searchExpression, $start = null, $end = null) |
|
| 665 | { |
|
| 666 | $args = [$arrayExpression, $searchExpression]; |
|
| 667 | if ($start !== null) { |
|
| 668 | $args[] = $start; |
|
| 669 | ||
| 670 | if ($end !== null) { |
|
| 671 | $args[] = $end; |
|
| 672 | } |
|
| 673 | } |
|
| 674 | ||
| 675 | return $this->operator('$indexOfArray', $args); |
|
| 676 | } |
|
| 677 | ||
| 678 | /** |
|
| 679 | * Searches a string for an occurrence of a substring and returns the UTF-8 |
|
| @@ 691-703 (lines=13) @@ | ||
| 688 | * |
|
| 689 | * @return $this |
|
| 690 | */ |
|
| 691 | public function indexOfBytes($stringExpression, $substringExpression, $start = null, $end = null) |
|
| 692 | { |
|
| 693 | $args = [$stringExpression, $substringExpression]; |
|
| 694 | if ($start !== null) { |
|
| 695 | $args[] = $start; |
|
| 696 | ||
| 697 | if ($end !== null) { |
|
| 698 | $args[] = $end; |
|
| 699 | } |
|
| 700 | } |
|
| 701 | ||
| 702 | return $this->operator('$indexOfBytes', $args); |
|
| 703 | } |
|
| 704 | ||
| 705 | /** |
|
| 706 | * Searches a string for an occurrence of a substring and returns the UTF-8 |
|
| @@ 718-730 (lines=13) @@ | ||
| 715 | * |
|
| 716 | * @return $this |
|
| 717 | */ |
|
| 718 | public function indexOfCP($stringExpression, $substringExpression, $start = null, $end = null) |
|
| 719 | { |
|
| 720 | $args = [$stringExpression, $substringExpression]; |
|
| 721 | if ($start !== null) { |
|
| 722 | $args[] = $start; |
|
| 723 | ||
| 724 | if ($end !== null) { |
|
| 725 | $args[] = $end; |
|
| 726 | } |
|
| 727 | } |
|
| 728 | ||
| 729 | return $this->operator('$indexOfCP', $args); |
|
| 730 | } |
|
| 731 | ||
| 732 | /** |
|
| 733 | * Determines if the operand is an array. Returns a boolean. |
|