I am trying to create a class to handle arrays but I can\'t seem to get array_map() to work in it.
array_map()
array_map($this->dash(), $data) calls $this->dash() with 0 arguments and uses the return value as the callback function to apply to each member of the array. You want array_map(array($this,'dash'), $data) instead.
array_map($this->dash(), $data)
$this->dash()
array_map(array($this,'dash'), $data)