Welcome Guest, Not a member yet? Register   Sign In
problem in undifined varible
#5

[eluser]cahva[/eluser]
No, definately keep the notices on! Even if PHP allows you to use undefined variables, it doesnt mean that you should use undefined variables. Always define variables that you use. Dont go where the fence is the lowest Smile

If you use some variable that might not be defined all the time, use isset function to check if it set:
Code:
if (isset($abc))
{
    echo $abc;
}


Messages In This Thread
problem in undifined varible - by El Forum - 09-26-2009, 01:25 AM
problem in undifined varible - by El Forum - 09-26-2009, 02:26 AM
problem in undifined varible - by El Forum - 09-26-2009, 02:35 AM
problem in undifined varible - by El Forum - 09-26-2009, 07:13 AM
problem in undifined varible - by El Forum - 09-26-2009, 07:58 AM
problem in undifined varible - by El Forum - 09-27-2009, 12:15 PM
problem in undifined varible - by El Forum - 09-22-2010, 11:02 AM
problem in undifined varible - by El Forum - 09-22-2010, 12:13 PM
problem in undifined varible - by El Forum - 09-22-2010, 12:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB