<?php
$str = "Привeт, как делa?";
$pattern = "/[a-zA-Z]+/i";
echo preg_match($pattern, $str); // Outputs 1
select sum(c) from (
select count(id) as c from mytable where col1=609
union
select count(id) from mytable where col2=609
union
...
)
(что_группировать)что_просто_захватить(что_группировать)
(p:QwertyZX\+?,).*?(f:\d+)
$1$2
или \1\2
mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
var cart = JSON.parse(localStorage.getItem("cart")||"[]");
//...
localStorage.setItem("cart",JSON.stringify(cart));