compare
array public \Bitrix\Perfmon\Sql\Collection::compare( \Bitrix\Perfmon\Sql\Collection $targetList, boolean $compareBody = true );
Non-static method compares two collections of objects and returns an array of pairs:
Each pair is an array consisting of two elements:
- First object, with index
"0"
is an object from source set. - Second object with index
"1"
is an object from$targetList
. When element matches, src element name was not found in the collection.
Parameters
Parameter | Description | Version |
---|---|---|
$targetList | Compared collection. | |
$compareBody | Source code (body ) comparison. |
Example
© «Bitrix24», 2001-2024