dachshund Posted November 26, 2011 Share Posted November 26, 2011 Hi there, I'm making an online clothing store for the brick and mortar shop we have and would like the customer to be able to refine their search by size, colour etc. The size options will be XS, S, M etc etc where XS is 0, S is 1 and so on. So when they select XS it will add ?size=0 to the URL, if they select XS and S it will be ?size=0;1 What I need to know is how to make some PHP code which can recognise the ; is a break and know that both sizes are selected. Hope that makes sense and thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/251844-seperate-words-in-url-with/ Share on other sites More sharing options...
xyph Posted November 26, 2011 Share Posted November 26, 2011 Check out explode. From there, you can use all sort of array functions on the return. Quote Link to comment https://forums.phpfreaks.com/topic/251844-seperate-words-in-url-with/#findComment-1291358 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.