We’re rewarding the question askers & reputations are being recalculated! Read more.

Hot answers tagged


I won't pretend to believe that this answer will completely resolve your problem, but I do see a couple things to be fixed up. if (!strpos($id, ':')) is not advisable practice even if it does what you intend to do. To check if a substring exists within a string you should be performing a strict boolean check on false (either !== or ===) if (strpos($id, ':'...

Only top voted, non community-wiki answers of a minimum length are eligible