A
The A class provides a set of handy methods to simplify array handling and make it more consistent. The class contains methods for fetching elements from arrays, merging and sorting or shuffling arrays.
- 
		
			A::append()
 - 
		
			A::apply()
 - 
		
			A::average()
 - 
		
			A::count()
 - 
		
			A::every()
 - 
		
			A::extend()
 - 
		
			A::fill()
 - 
		
			A::filter()
 - 
		
			A::find()
 - 
		
			A::first()
 - 
		
			A::get()
 - 
		
			A::has()
 - 
		
			A::implode()
 - 
		
			A::isAssociative()
 - 
		
			A::join()
 - 
		
			A::keyBy()
 - 
		
			A::last()
 - 
		
			A::map()
 - 
		
			A::merge()
 - 
		
			A::missing()
 - 
		
			A::move()
 - 
		
			A::nest()
 - 
		
			A::nestByKeys()
 - 
		
			A::pluck()
 - 
		
			A::prepend()
 - 
		
			A::random()
 - 
		
			A::reduce()
 - 
		
			A::shuffle()
 - 
		
			A::slice()
 - 
		
			A::some()
 - 
		
			A::sort()
 - 
		
			A::sum()
 - 
		
			A::update()
 - 
		
			A::without()
 - 
		
			A::wrap()
 
The methods of the A class are called statically, i.e. without you having to create an object of the class first.
$colors = ['blue', 'yellow', 'green'];
if (A::isAssociative($colors)) {
  return 'Hurray! An associative array';
}