To fake a PHP enum

Today I was sort of in a need of an enum in PHP. This, of course, doesn’t exist so I had to make the best of what I had. I wanted to both use an enum as a way to organize digits, but also to use the literal form of it.
One way to do it is to define string constants, like this:

<?php 
	define("MY_CONSTANT", 0);
?>

But I didn’t want that, because that can clutter your code up pretty badly. So while googling this issue I saw some interesting solutions which I mixed together. This example isn’t excellent in that it uses swedish letters in the code (oh the horror), but it does actually work and in this particular situation it was just what I needed:

<?php 
	/**
	 *	A class representing various swedish types of jewelry
	 */
	class Items
	{
		const Halsband = 0;
		const Armband = 1;
		const Örhänge = 2;
		const Barnsmycke = 3;
		const Övrigt = 4;
 
		/**
		 *	A function that returns the name of an Items constant 
		 *
		 *	@param 		int 	$const	A constant in the Items class 
		 *	@returns	string			The name of the constant
		 */
		public static function getName($const)
		{
			$itemClass = new ReflectionClass("Items");
			$constants = $itemClass->getConstants();
 
			foreach($constants as $name => $value)
			{
				if($value == $const)
					return $name;
			}
 
			//Nothing was found
			return -1;
		}
	}
?>

This can be used like this:

<?php 
$item = Items::getName(Items::Halsband); //$item will now hold the string 'Halsband'
?>