Documentation

GetArrayByID

array
CIBlock::GetArrayByID(  int ID,  string FIELD = ""
);

Returns array with iblock fields. Static method.

Note: when iblock with such ID doesn't exist, method returns false.

Parameters

Parameter Description
ID Iblock ID
FIELD Field ID. When this parameter is specified, this method returns value for specific field.

Returned value

Array with iblock fields.

See Also

Example

<?
echo CIBlock::GetArrayByID($IBLOCK_ID, "NAME");
?>


© «Bitrix24», 2001-2024
Up