本文介绍了发票编号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好, i是php.how的新手,可以生成发票编号(EX:INV2008001)这种格式。 plz回复我的代码.... 谢谢 palani
hi all, i am new to php.how to generate invoice number (EX:INV2008001) this format. plz reply me the code.... thanks palani
推荐答案我不能用勺子给你代码,但你会想看看 rand 作为开始。 对你来说应该很直接。 Hi, I can''t spoonfeed you the code, but you''ll want to have a look at rand as a start. Should be pretty straight forward for you.
我不能给你代码,但是你'我想看看 rand as一开始。 对你来说应该很直接。 Hi, I can''t spoonfeed you the code, but you''ll want to have a look at rand as a start. Should be pretty straight forward for you.
这可能会产生重复的发票号码。 我认为最好的办法是拥有发票号码:INV20000001,然后递增。 将它保存在数据库中。
That could produce a duplicate invoice number, though. I think the best way would be to have an invoice number : INV20000001, and then increment that. Save it in a db maybe.
但是,这可能会产生重复的发票编号。 我认为最好的方法是拥有发票编号:INV20000001,然后再增加。 可以将它保存在数据库中。 That could produce a duplicate invoice number, though. I think the best way would be to have an invoice number : INV20000001, and then increment that. Save it in a db maybe.
或者使用这个... [php]
Or use this... [php]
更多推荐
发票编号
发布评论