Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
$masiv = array("1", "2", "23", "42");
foreach ($masiv as $mas){
echo '<a href="delete.php?id='.$mas.'">Del</a><br />';
}
$masiv = array("Walq", "Toni", "Curko", "Stamat");
foreach ($masiv as $key => $mas){
echo '<a href="delete.php?id='.$key.'">'.$mas.'</a><br />';
}
<?php
$sites = array("http://abv.bg", "http://data.bg");
foreach($sites as $site) {
echo file_get_contents($site);
}
?>
В абв-то мисля, че няма <h1> таг, затова не ти извежда информация...<?php
function funkciq($links)
{
$i=0;
foreach($links as $url) {
$string = file_get_contents($url);
$dve=explode('</div><br>',$string);
$result[$i]=$dve[0];
$i++;
}
return $result;
}
$sites = array("http://abv.bg", "http://data.bg");
$novmasiv = funkciq($sites);
print_r($novmasiv);
?>