php modulo return wrong result

前端 未结 4 707
我寻月下人不归
我寻月下人不归 2021-01-14 07:42

I got problem with this code:

if (!empty($_GET[ \"lic\" ])) $lic = $_GET[ \"lic\" ]; else $e = true;
echo ($lic % 11);

When I post 89

4条回答
  •  星月不相逢
    2021-01-14 08:24

    Did you tried this:

    if (!empty($_GET[ "lic" ])) $lic = intval($_GET[ "lic" ]); else $e = true;

    echo ($lic % 11);

提交回复
热议问题