<?php
class Model_Example
{
const VALUE_1 = 1;
const VALUE_2 = 2;
const VALUE_3 = 3;
public static $value_array = array(
self::VALUE_1 => 'boing',
self::VALUE_2 => 'boingboing',
self::VALUE_3 => 'boingboingboing',
);
public function countit()
{
echo count(self::$value_array );
}
}
$model = new Model_Example();
$model->countit();
?>