This is a part of a larger script: if ($lineid == "layout_others") { var_dump($lineid); } the output is: int(0) ?!?! How can int(0) == "layout_others" ??