simonpearce
ISP
Hi everyone,
It's been a while since I posted here - let's see if the expert advice is still as good!
I have a variable (let's call it $variable) - that is in the format
"word1 word2 word3 anythingelse"
eg "simple domain aardvark anythingelse"
I need to be able to get word1, word2 and word3 into their own variables whilst ignoring anythingelse that may be after word3 - any ideas how I might do this?
If it helps, word1 will always be 'simple'. Unfortunately, I cannot change the structure of the original $variable.
Any help greatfully appreciated.
Simon
It's been a while since I posted here - let's see if the expert advice is still as good!
I have a variable (let's call it $variable) - that is in the format
"word1 word2 word3 anythingelse"
eg "simple domain aardvark anythingelse"
I need to be able to get word1, word2 and word3 into their own variables whilst ignoring anythingelse that may be after word3 - any ideas how I might do this?
If it helps, word1 will always be 'simple'. Unfortunately, I cannot change the structure of the original $variable.
Any help greatfully appreciated.
Simon