[eluser]cinewbie81[/eluser]
Hi, this is CI irrelevant, but i need ur help.
Im checking if $value exists in $Temp arary or not. The code as following:
Code:
$value = '123';
$Temp = array();
if (!$Temp =[$value]) {
$Temp =[$value] = '1';
} else {
echo $value.'exist in array';
}
It generate me the following error :
Severity: Notice
Message: Undefined index: 123
Any idea ?