preg_match_all('/[-0-9_a-z]{3,}+@[0-9a-z]{2,}\.[0-9a-z]{2,}/i', $text, $matches);
if (class_exists('\CURLFile')) {
curl_setopt($ch, CURLOPT_POSTFIELDS, ['file_box' => new \CURLFile($path)]);
} else {
curl_setopt($ch, CURLOPT_POSTFIELDS, ['file_box' => "@$path"]);
}
php > echo bcmul(6031, bcmul(8109, bcmul(980, bcmul(1909, bcmul(429, 1714, 0), 0), 0), 0), 0);
67275470345782378680
php > echo bcmul(8109, bcmul(980, bcmul(1909, bcmul(429, bcmul(1714, 6031, 0), 0), 0), 0), 0);
67275470345782378680
curl_setopt($ch, CURLOPT_POSTFIELDS, ['file' => new CURLFile($path)]);
public function uploadFile($url, $path)
{
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_POST, true);
if (class_exists('\CURLFile')) {
curl_setopt($ch, CURLOPT_POSTFIELDS, ['file1' => new \CURLFile($path)]);
} else {
curl_setopt($ch, CURLOPT_POSTFIELDS, ['file1' => "@$path"]);
}
$data = curl_exec($ch);
curl_close($ch);
return json_decode($data, true);
}
~^\+\d{7,15}$~
/^\+\d{7,15}$/
`^\+\d{7,15}$`