- convert($isbn)
Takes a 10 digit ISBN and returns the 13 digit equivalent. Does not perform any error checking or validation.gettype($isbn)
Takes a string value and will make a guess as to whether or not it fits the criteria of an ISBN. Returns 10 for a possible ISBN-10 and 13 for ISBN-13. Does not validate further.validateten($isbn)
Takes a 10 digit numeric value and checks to determine if it is a valid ISBN-10.validatettn($isbn)
Takes a 13 digit numeric value and checks to determine if it is a valid ISBN-13.genchksum13($isbn)
Takes a 12 digit numeric value and generates an ISBN-13 checksum digit.genchksum10($isbn)
Takes a 9 digit numeric value and generates an ISBN-10 checksum digit.printinvalid()
Returns a message informing the user the ISBN is invalid.
ISBN


0 comments:
Post a Comment