BrArray code sugar around array

This class is developed because PHP sometimes is very confusing in parameters and calling conventions.

You don't need to create objects of this class directly, rather use br() magic function. For example:

$array = br($array);

In most cases you don't even need BrArray itself but need it's great functions. For example:

echo(br($array)->length());

if (br($array)->exists('some string')) {
  echo('some string exists in this array');
}

echo(br($array)->indexOf('Some string'));

Object members

Method/propertyDescription
exists($value)Find value in array
length()Return array length
indexOf($value)Return index of value if it's exists
removeEmptyValues()Return array with empty values removed.