<?php
$servername = "localhost";
$username = "username";
$password = "password";
// Create connection
$conn = new mysqli($servername, $username, $password);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
// Create database
$sql = "CREATE DATABASE myDB";
if ($conn->query($sql) === TRUE) {
echo "Database created successfully";
} else {
echo "Error creating database: " . $conn->error;
}
$conn->close();
?>
curl_setopt($ch, CURLOPT_POSTFIELDS,"file=@curriculum.html&source=en&target=fr");
<?php
$re = '/(\d{2}\.\d{2}\.\d{4})/m';
$str = 'только в формате 10.10.2020, если формат ввода не совпадает, должно выдать ошибку';
preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0);
// Print the entire match result
var_dump($matches);
<li class="product
или другой класс как на картинке