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.
Arrayor something like that...$tagactually holds this type of information:<tag>. If you echo that in a browser it will interpret it as an actual html tag, and thereby showing nothing. Look at the html code in your browser, or do aprint_r( $tag )