Welcome Guest, Not a member yet? Register   Sign In
Getting certain keywords from a string ?
#3

[eluser]Dam1an[/eluser]
If you insist on doing it the array way, you could
- Explode the string on a space
- use array_intersect on that and the key workds array
- implode the resulting array with commas

Smile


Messages In This Thread
Getting certain keywords from a string ? - by El Forum - 05-26-2009, 10:20 PM
Getting certain keywords from a string ? - by El Forum - 05-26-2009, 11:47 PM
Getting certain keywords from a string ? - by El Forum - 05-27-2009, 01:43 AM
Getting certain keywords from a string ? - by El Forum - 05-27-2009, 01:52 AM
Getting certain keywords from a string ? - by El Forum - 05-27-2009, 01:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB