This is probably a simple question, but how do I take a variable like the following and make it into an array.
$hot = "It","is","hot","outside";
Doing the following doesn't work:
$newhot = array($hot);
I'm actually calling an API that looks like:
[["P0010001","NAME","state","zip code tabulation area"],
["68191","ZCTA5 99301","53","99301"]]
What I need is the population on the second line (first quotes).
Doing the following gives me "68191","ZCTA5 99301","53","99301"
$splitContent = implode("\n",array_slice(explode("\n",$populate),1,2));
$newContent = str_replace(']','',$splitContent);
$newContent = str_replace('[','',$newContent);