How to get the following serial number value using sscanf ?


Default Asked on January 19, 2016 in PHP.
Add Comment
  • 1 Answer(s)

    It’s easy, since you just have to get the integer value use %d as follows.

     list($serial) = sscanf("SN256720001", "SN%d");
     echo $serial

    Train Answered on January 19, 2016.
    Add Comment

    Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.