Reputation: 1117
I want to get values from an array, For example this is array:
$tags_array = $_REQUEST['item'];
With print_r
, I get following:
Array
(
[tags] => Array
(
[0] => tag1
[1] => tag2
)
)
I want to get values of array with for each loop.
foreach ($tags_array as $tag) {
echo $tag;
}
It prints nothing. Thanks for help.
Upvotes: 0
Views: 112