Guest User

Untitled

a guest
Jan 22nd, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. $collection->addAttributeToSelect('*')->addFieldToFilter('attribute',$somevalue);
  2.  
  3. foreach ($collection as $key => &$value) {
  4. if($key == 1){
  5. //// how to unset this index in collection ?
  6. }
  7.  
  8. }
Add Comment
Please, Sign In to add comment