Hi,
as I can understand in last elseif statement u r trying to search the value within an associative array. If this is the case then -- u can use array_search(), if u r looking for a particular value within the array.
- u can use array_key_exists() if u r looking for a particular key.
if u r looking for something else then can u elaborate the probs little more?
susen
yes sir devsusen...im trying to compare the value within the array in my last elseif ...
i have an array then it should be compare to the value of $x for exampe:
[PHP]if($x==1) {
..................
} elseif($x==2) {
....................
} elseif($x==3) {
....................
}
} elseif($x==4) {
....................
} elseif($x== arrayvalue) { //<===array should be compare in this part
................
}else{
..........
}[/PHP]
the value of the array comes from the database! i cant place the IF STATEMENT inside the "foreach" anymore coz i already place it inside another foreach...if im goin to...it will displays the result repeatedly..so it must be on the part only...only in my last "elseif".
sir please help..if you have more question and need more details ... i will post it immediately...