06-29-2010, 12:19 AM
|
#1 (permalink)
|
|
The Acquainted
Join Date: Feb 2008
Posts: 107
Thanks: 3
|
For each question
Hello,
PHP Code:
if(isset($videos[0]['url'])) {
foreach ($videos as $video) {
$yonlen = $video['url']; echo "<a href=$yonlen>Download</a><br>"; }
In for each statement, it generates 2 values to the $yonlen, the outputs is
Download
Download
It echos 2 links. I want to make string equals to the latest value in for each statement. How to do that ?
|
|
|