0
我嘗試驗證的Zend Framework 2條碼但沒有成功Zend框架2條形碼CODE128錯誤的驗證
驗證怎麼回事總是返回false
$bc128 = new Code128();
$bc128->setText('TEST');
$valid = new \Zend\Validator\Barcode('code128');
if ($valid->isValid($bc128->getTextToDisplay())) {
exit('valid');
} else {
exit('invalid');
}
有誰知道?