发票编号

编程入门 行业动态 更新时间:2024-10-27 22:29:12
本文介绍了发票编号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好, 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]

更多推荐

发票编号

本文发布于:2023-10-30 12:31:51,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1542852.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:发票   编号

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!