Jump to content

Help with looping through a string


ChaosKnight

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.