I have a PHP variable $MostRecentQuestionType
whose value is SimplifyingFractions
. I want to print Simplifying Fractions
, so I tried the following, but it returns Array ( [0] => Simplifyin [1] => Fractions )
$MostRecentQuestionType = $data['MostRecentQuestionType'];
$MostRecentQuestionTypeExploded = preg_split('/.(?=[A-Z])/',$MostRecentQuestionType);
print_r($MostRecentQuestionTypeExploded);
How do I extract the words from this array?
Side note: I know people are going to attack me for not doing my research; I've tried but I don't quite have the vocab to look up the solution. I've tried converting array to string
and similar searches, but the results don't address this question. My searching has led to me to preg_replace
, str_replace
, toString()
, among others, but nothing seems to help. I feel like I'm getting hung up on something that has a very easy solution.