Syntax should be:
$minder .= '<li class="0 2" title="2"></li>';
Note the .=
Concatenating two strings is done with a .
(i.e. $string = "first part"." second part";
) but if you want to concatenate a string to an existing variable, you can do it the long way:
$existing_string = $existing_string." some more text";
or use the shorthand syntax, which is much simple:
$existing_string .=" some more text";
Also... your class names!
Using a numeric digit as a class name is going to give you headaches down the road. Technically you can do it, but it requires vigilance and you may just want to avoid it by calling your class 'class_1' and 'class_2', etc. From w3c:
In CSS1, a class name could start with a digit (".55ft"), unless it
was a dimension (".55in"). In CSS2, such classes are parsed as unknown
dimensions (to allow for future additions of new units). To make
".55ft" a valid class, CSS2 requires the first digit to be escaped
(".\35 5ft")
Given how easy it is to just avoid this, I'd follow Triptych's rule on this:
A name [should] begin with an underscore (_), a dash (-), or a
letter(a–z), followed by any number of dashes, underscores, letters,
or numbers. There is a catch: if the first character is a dash, the
second character must2 be a letter or underscore, and the name must be
at least 2 characters long.