Example #1
0
 /**
  * Validate a SSCC (Serial Shipping Container Code)
  *
  * This function checks given SSCC number
  * used to identify logistic units.
  * http://www.ean-ucc.org/
  * http://www.uc-council.org/checkdig.htm
  *
  * @param  string  $sscc number (only numeric chars will be considered)
  * @return bool    true if number is valid, otherwise false
  * @access public
  * @see Validate_ISPN::process()
  * @author Piotr Klaban <*****@*****.**>
  */
 function sscc($sscc)
 {
     static $weights_sscc = array(3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3);
     return Validate_ISPN::process($sscc, 18, $weights_sscc, 10, 10);
 }