$url = 'https://z1.fm/download/4866738?play=on';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_NOBODY, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
curl_setopt($ch,CURLOPT_HEADER,false);
$response = curl_exec($ch);
$target = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
curl_close($ch);
echo $target; //http://muz5.zf.fm/1/fe/leningrad_-_pid__asi_(zf.fm).mp3?download=force
<?php
if(isset($_POST['submit'])){
if($_POST['login'] == "Admin"){
echo "Неправильно";
return;
}
else {
echo $_POST['login'];
return;
}
}
?>
$a = 'Смирнова Екатерина Сергеевна';
$rest = substr($a, -2, 2);
switch ($rest) {
case 'ич':
$hello = 'Уважаемый '.$a;
break;
case 'на':
$hello = 'Уважаемая '.$a;
break;
default:
$hello = 'Уважаемый(-ая) '.$a;
break;
}
<form action="" method="post">
<input type="text" name="group[0]" placeholder="группа">
<input type="text" name="group[0]['text'][]" placeholder="текст">
<input type="text" name="group[1]['text'][]" placeholder="группа">
<input type="text" name="group[1]['text'][]" placeholder="текст">
<input type="text" name="group[1]['text'][]" placeholder="текст">
<input type="submit" value="Отправить">
</form>