I have a string which contains many words. This string is created by another function which inside by using "<br>" to create new line for each word.
Result Example:
I
am
a
student
I would like to get each word out of this string by using a function get one word each time.
something like: get_word($str, $num);
when $num=1, return "I";
when $num=2, return "am";
when $num=3, return "a";
thank you for your help!