I have the following piece of code:
$item[\'price\'] = 0; /* Code to get item information goes in here */ if($item[\'price\'] == \'e\') { $item[\'price\'
You are doing == which sorts out the types for you.
==
0 is an int, so in this case it is going to cast 'e' to an int. Which is not parsable as one and will become 0. A string '0e' would become 0 and would match!
0
'e'
'0e'
Use ===
===