$product = CIBlockElement::GetByID(123)->GetNext(); $color = $product['PROPERTIES']['color']['VALUE'];
$product = CIBlockElement::GetByID(123)->GetNext(); $properties = $product['PROPERTIES']; foreach($properties as $property) { echo $property['NAME'].": ".$property['VALUE']."This code retrieves all properties belonging to the element with the ID of 123, loops through them, and outputs their names and values. In summary, the CIBlockElement GetProperty function is a useful tool for retrieving property values of IBlock elements in Bitrix CMS. It's part of the core framework package and can be used in various scenarios to aid in development.
"; }