Урок - ArrayObject

Главная » Курсы » Курс ACMF » Урок - ArrayObject

Обучающий онлайн курс
ACMF

Лицензия: Лицензия Creative Commons.

Methods

  • ArrayObject::clear() - clears ArrayObject and returns this.
  • ArrayObject::clone() - clones ArrayObject.
  • ArrayObject::count() - returns items count in ArrayObject.
  • ArrayObject::delete(Position) - deletes element by position number and return this.
  • ArrayObject::first() - returns first element from ArrayObject without removing.
  • ArrayObject::get(Position) - returns value by position number from ArrayObject without removing.
  • ArrayObject::has(Position) - returns true if element with position number exists.
  • ArrayObject::last() - returns last element from ArrayObject without removing.
  • ArrayObject::lead(Mixed) - inserts element at the begin.
  • ArrayObject::map(Callback[, args]) - apply callback function to each element.
  • ArrayObject::remove(Position) - deletes element by position and returns it.
  • ArrayObject::keys() - returns keys as ArrayObject.
  • ArrayObject::pop() - returns last element and remove it.
  • ArrayObject::push(Mixed) - inserts element at the end.
  • ArrayObject::set(Position, Mixed) - update element by position number.
  • ArrayObject::turn() - removes first element and returns it.
  • ArrayObject::toPHPArray() - returns array as PHP Array.
  • ArrayObject::values() - returns values.