function get_isbn_code($field) { $ISBN = new ISBN(); $field = strtoupper($field); $isbntype = $ISBN->gettype($field); if ($isbntype == 10 && $ISBN->validateten($field) || $isbntype == 13 && $ISBN->validatettn($field)) { return $field; } return FALSE; }