hi
while($row3=mysql_fetch_array($result2)){
$Array[$a]=$row3['V_ID'] . "/";
$a++;
}
so here i got an array of several elements with an / at the end of each element.
i would like to have 1 variable that has the entire array as string.
$test = $Array;
something like this
echo $test;
should give:
element1/element2/element3/ .....
as you can see the number of elements in the arrays is variable so do not say:
$test =$Array[0] . $Array[1] ..
print_r($Array); --> this gives :
Array
(
[0] => 1
[1] => 1
[2] => 1
[3] => 13
[4] => 1
[8] => 1
[9] => 19
)
and i only need the values 1/1/13/ ...
so can you help me to get all the values into 1 varable
<!-- m --><a class="postlink" href="thxhttp://www.php.net/manual/en/function.implode.php">thxhttp://www.php.net/manual/en/function.implode.php</a><!-- m -->
$string = implode("", $array);
while($row3=mysql_fetch_array($result2)){
$Array[$a]=$row3['V_ID'] . "/";
$a++;
}
so here i got an array of several elements with an / at the end of each element.
i would like to have 1 variable that has the entire array as string.
$test = $Array;
something like this
echo $test;
should give:
element1/element2/element3/ .....
as you can see the number of elements in the arrays is variable so do not say:
$test =$Array[0] . $Array[1] ..
print_r($Array); --> this gives :
Array
(
[0] => 1
[1] => 1
[2] => 1
[3] => 13
[4] => 1
[8] => 1
[9] => 19
)
and i only need the values 1/1/13/ ...
so can you help me to get all the values into 1 varable
<!-- m --><a class="postlink" href="thxhttp://www.php.net/manual/en/function.implode.php">thxhttp://www.php.net/manual/en/function.implode.php</a><!-- m -->
$string = implode("", $array);