Jump to content

Recommended Posts

Hi, I have to make a database for a car rental company and their car groups work with letters of the alphabet, what I wanted to do was to create one table for the country in which the available car groups are listed as something like: ABCDEFGJKMNP, but I want to display information about the different car groups, so I thought it would work if I created another table where each row represents a car group. But then I realized the only way to make such a query would be to turn the string into an array and to query data based on each individual letter as elements of the array...

 

How can I convert a string such as: ABCDEFGJKMNP into an array? Or does anyone perhaps have a better solution?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/201386-help-with-looping-through-a-string/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.