Hi to all,
i posted this prob earlier but might to the wrong forum, or i have simply explained it not properly... here it is, again:
As a result of a query, there is the variable $projects
Code: Select all
<?php
$projects = "01,01,02,03,08,14,02";
?>
To process $projects any further, it
must 
look like this:
Code: Select all
<?php
$projects = "01,02,03,08,14";
?>
So if a number (like
01 or
02 in this example) occurs two (or more) times, the second (third, fourth and so on) occurence should be extracted and deleted. Both the sequence and the quantity of numbers in $projects are
unpredictable - it can start with
99, followed by
37 [...] and end up with
13, and there can be
66 as well as
3 or
0 numbers.

Has anyone an idea?
greez, bluenote