Welcome Guest, Not a member yet? Register   Sign In
CI irrelevant, but help please
#1

[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 ?


Messages In This Thread
CI irrelevant, but help please - by El Forum - 01-04-2008, 02:52 AM
CI irrelevant, but help please - by El Forum - 01-04-2008, 02:59 AM
CI irrelevant, but help please - by El Forum - 01-04-2008, 03:00 AM
CI irrelevant, but help please - by El Forum - 01-04-2008, 03:43 AM
CI irrelevant, but help please - by El Forum - 01-04-2008, 05:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB