The following line prints something:
echo $keywords[0][3];
However, when I then use the count function as follows:
$count = count($keywords[0]);
echo $count;
The printed count is only 1.
I know there are at least 4 items in the array as I proved above.
The array was created with the preg_split function which I don't think matters.
I don't know what I'm doing wrong. Seems simple.
echo $keywords[0][3];
However, when I then use the count function as follows:
$count = count($keywords[0]);
echo $count;
The printed count is only 1.
I know there are at least 4 items in the array as I proved above.
The array was created with the preg_split function which I don't think matters.
I don't know what I'm doing wrong. Seems simple.
Comment