SPraus Posted March 30, 2009 Share Posted March 30, 2009 Hey guys, I accidently closed the other post too fast before I added something. The example was Bob;Joe;example;example..... Broken down thanks to Ober and Lonewolf into an array using $str = "Bob;Joe;Jim;Another Example Name;"; $myarray = explode(';', $str); now i have one other problem, I have multiple diferent things that could Bob or Joe therefore if i use this it would print (in my example) Bob<br>Jim<br> for the first array and then if the second has bob and jim it would print Bob<br>Jim<br>Bob<br>Jim<br>, I need it to only do 1. If you understand please help me I am so close to getting this project done, it is to point out products for each body part for an orthotics website so there are more than 1 neckbrace so if it was Neck as opposed to Bob it would print Neck<br>Neck<br>Neck<br>.... if It was listing 3 neckbraces I would like it to only list Neck<br> than the next tag for the next product like Ancle<br> I know its complicated how I explained it but if someone could help me please let me know. Thank You; Spraus Quote Link to comment https://forums.phpfreaks.com/topic/151770-solved-special-searching-again-sorry/ Share on other sites More sharing options...
Mark Baker Posted March 30, 2009 Share Posted March 30, 2009 If I'm reading this correctly, have a look at array_unique() Quote Link to comment https://forums.phpfreaks.com/topic/151770-solved-special-searching-again-sorry/#findComment-796952 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.