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 should use === instead of ==, because the ordinary operator does not compare the types. Instead it will attempt to typecast the items.
===
==
Meanwhile the === takes in consideration type of items.