I need check among items entering session array.Say $a=1, if $a enters the array for the first time then mark it new.Else if the same $a entered the array more than once then mark it old.I tried using in_array,array_key_exists funtions but to no avail.

Please help me..Thanks.

Explain your case with more details. What you have and what you want to do.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.