Advertisement
animdenis

ActiveElementCount

Apr 20th, 2016
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.17 KB | None | 0 0
  1. CModule::IncludeModule('iblock');
  2. $res = CIblockElement::GetList(array(),array('IBLOCK_ID' => 4, 'ACTIVE' => 'Y'));
  3. $i = 0;
  4. while($ob = $res->GetNext())
  5.     $i++;
  6.  
  7. echo $i;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement