$from = new \DateTime('2014-01-01');
$to = new \DateTime('2015-11-01');
 
$period = new \DatePeriod($from, new \DateInterval('P1D'), $to);
 
$arrayOfDates = array_map(
    function ($item) {
        return $item->format('Y-m-d');
    },
    iterator_to_array($period)
);$content = '
<p>Первая строка</p>
<p>Вторая строка</p>
ВИДЕО:https://www.youtube.com/watch?v=dlkfghn9odnfvbde&t=644s
<p>Третья строка</p>
<p>Четвертая строка</p>
ВИДЕО:https://www.youtube.com/watch?v=bnviufedyfgbvpo9&t=644s
<p>Пятая строка</p>
';
$content = str_replace('ВИДЕО:https://www.youtube.com/watch?v=', 'ID видео: ', $content);"SELECT user_id FROM usersSettings WHERE ss=$method";$stmts = $this->db->prepare("SELECT user_id FROM usersSettings WHERE ?=?");
$stmts->bind_param("ss", $method);public function __construct($proxy) 
  {
    $this->ch = curl_init();
    $this->proxy = $proxy;
  }$curl = new Curl('127.0.0.1');
$data = $curl->post('http://ya.ru');$curl = new Curl();
$curl->setProxy('127.0.0.1');
$data1 = $curl->post('http://ya.ru');
$data2 = $curl->post('http://vk.com');
$data3 = $curl->post('http://google.com');while(true) {
// какой то код
sleep(5);
}$(document).on('submit', 'form', function(event){
	event.preventDefault();
	$.ajax({
		url:'User.php',
		method:"POST",
		data: $("form").serialize(),
		dataType:"text"
	});
});url: 'user/emailCheck',if ($query->rowCount() > 0) {
            echo json_encode(['status' => 'error']);
        } else {
            echo json_encode(['status' => 'success']);
        }success:function(answer){
    if(answer.status == 'success') alert('Логин свободен для регистрации');
    else alert('Данный логин уже занят');
}SELETCSELECT$name = addslashes('Текст текст текст текст "Некое название в кавычках"');
$sql = "SELECT * FROM Table WHERE Pole = '".$name."'";