$email = 'test@example.com';
$validator = new yii\validators\EmailValidator();
if ($validator->validate($email, $error)) {
echo 'Email is valid.';
} else {
echo $error;
}
<?php
$date1 = new DateTime("now");
$date2 = new DateTime("2014-08-01 00:00:00");
if ($date1 < $date2)
{
echo('Hello, world!');
}
else
{
echo('Bye, world!');
}
?>
$outer_id = $id . "-" . md5($salt.time());
curl -F 'client_id=CLIENT-ID' \
-F 'client_secret=CLIENT-SECRET' \
-F 'object=geography' \
-F 'aspect=media' \
-F 'lat=35.657872' \
-F 'lng=139.70232' \
-F 'radius=1000' \
-F 'callback_url=http://YOUR-CALLBACK/URL' \
https://api.instagram.com/v1/subscriptions/
instagram.com/developer/realtime