$info = json_decode(file_get_contents($response));
echo $info->response;
$start = microtime(true);
// function
$timeSpend = microtime(true) - $start;
log($timeSpend);
$username = $_SESSION['session_username'];
$stmt = $pdo->prepare('SELECT * FROM user_spells WHERE user_login = ?');
$stmt->execute([$username]);
return $stmt->fetchAll();
if (preg_match('#\b[^\s]+\b#ui', $content, $matches)) {
// Английские слова
} elseif (preg_match('#\b[^\s]+\b#i', $content, $matches)) {
// Русские слова
}
$pattern = '/my.key.*/';
$count = null;
foreach ($arr as $key => $value) {
if (!preg_match($pattern, $key, $match)) {
continue;
}
$count += 1;
}
echo $count;