You have that basic overview screen, where you click this sweet „ +„-button and voila.Īfter that, you will have your detail screen displayed, which is ready to get filled out. Usually the approach of working with the database or entities in general, is like the following. Thoughts like „Hmm, this shop did just start, maybe it’s a scam.“ could arise. This could lead the end user to actually interpret more, maybe negative things into that. The main reason for the customer would mostly be, to hide actual counts from the end user.Įnd users could guess from order number „5“, that this shop maybe just started. This is literally one thing, where some customers and developers argue about doing it different. When you have one id, you can increment that by yourself and you could test „Hmm, what’s the next one about!?“. No matter if those numbers start at 300, or at 300000, you can always kinda guess, what’s the next one. Here we are, already facing one of the common problems when using „normal“ numbers. Sure, there are some cases where people want to define another starting point like at 5000, but. So basically this will be an incrementing number, which starts at like 1 and counting up. The first column inside that table, will usually display the unique identifier for that entity. So far this isn’t really exciting, i know, but what comes into your mind, when thinking about the first column? You got that usual screen with something like a table, which displays some data about the listed entities. So imagine having that graphical user interface, like most of the time, with some kind of list. The background story – PHP generate UUID’s Background story – PHP generate UUIDsīefore we actually start thinking about code, we could also start from a little different angle. So let’s get into the background story and later into how we can actually create/generate one. This doesn’t only apply for the developers side, customers and other involved parties actually want something else, too. Using a different approach than those normal „1, 2. It doesn’t matter if it’s stored in a good old MySQL Database, or in one of the document based alternatives. Many projects nowadays require a new way of generating that unique identifier for like your entities. There are different versions of UUIDs, but the main focus will lie on generating an UUID of the version 4. Those „special kind“ identifiers are – as the name obviously suggests – for uniquely identifying „things“. In this post i will partially dive into the thing called universally unique identifiers. I welcome you to todays post on „How to make PHP generate a UUID for you?“. You want to make PHP generate UUIDs for you!?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |