After you explode a string, you can call the individual delimited words using something like:
$string[0]
$string[1]
etc.
Is there a way to call them all at once with a wildcard. I know this example doesn't work but something like this:
$string[*]
It's probably a dumb question; I'm just trying to save myself having to do 30 lines of code instead of one.
-- EDIT --
Here's what I have right now that's working for me:
$words = explode(' ',$string);
$thestuff = '';
if ($words[0] || $words[1] || $words[2] || $words[3] || $words[4] || $words[5] || $words[6] || $words[7] || $words[8] || $words[9] || $words[10] || $words[11] || $words[12] || $words[13] || $words[14] || $words[15] || $words[16] || $words[17] || $words[18] || $words[19] || $words[20] || $words[21] || $words[22] || $words[23] || $words[24] || $words[25] || $words[26] || $words[27] || $words[28] || $words[29] || $words[30]){
$thestuff = do_shortcode($content);
}
return $thestuff;
}
But I'd like to be able to do it with $words[wildcard] or something simpler.