Ad
  • Custom User Avatar

    In php


    $res = substr($res,0,strrpos($res,'.')+7);


    is giving NAN, but,


    $res = substr($res,0,strrpos($res,'.')+6);


    is giving correct result without last number.

    When I was testing it on my server it was working without problems.

    PS. Only 7 isn't working