Sorry, I forgot to add another line of the code that makes it so that
substr won't work, at least reading from right to left. From left to
right, it will, because there is always 2 chars for the description, but
perhaps only 1 for the year.
case 'FF2':
$series_year = "2";
$series_description = "/FF";
break;
I'm sure there's a way to make substr read from left to right, but I
don't know how to do the counting for it.
Ash
$servies_year = substr($series,0,2);
$servies_year = substr($series,2,2);
something along those lines may work.
On Mon, Aug 25, 2008 at 1:31 PM, Ash <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
switch ($series)
{
case 'FF12':
$series_year = "12";
$series_description = "/FF";
break;
case 'FF13':
$series_year = "13";
$series_description = "/FF";
break;
_______________________________________________
UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net