Re: [PHP] array_unique() and count issue

2001-08-19 Thread David Robley
On Sat, 18 Aug 2001 17:27, CGI GUY wrote: > OK, I want to count the number of unique elements in > an array, then print the total. However, both methods > I've tried return "1"; the man pages explain that the > count() function will return 1 if the var is set but > not an array. But if you look

[PHP] array_unique() and count issue

2001-08-18 Thread CGI GUY
OK, I want to count the number of unique elements in an array, then print the total. However, both methods I've tried return "1"; the man pages explain that the count() function will return 1 if the var is set but not an array. But if you look at the 2nd method esp., I've set an if-else !is_set(