Let’s say I have a big group of strings in a varible, seperated by a a new line.
so it would be:
$str = "
word1
word2
word3
word4
word5
";
Now I want it to take all those words and store them in their own seperate variable automatically.
so it would be:
$str1 = “word1”;
$str2 = “word2”;
$str3 = “word3”;
$str4 = “word4”;
$str5 = “word5”;
Think theres a way to do this? Thanks.