<?php
$d = new DateTime('2011-01-01T15:03:01.012345Z');
echo $d->format('d.m.Y H:i'); // 01.01.2011 15:03
mysqli_query($CONNECT, "UPDATE `account` SET `balance` = '$balance[1]' WHERE `id` = '$likes'");
mysqli_query($CONNECT, "UPDATE `account` SET `last` = '$last' WHERE `id` = '$likes'");
mysqli_query($CONNECT, "UPDATE `account` SET `last_work` = 'like' WHERE `id` = '$likes'");
mysql -u user -p database < data.sql
<?php
$obj = (object) 'ciao';
echo $obj->scalar; // выведет 'ciao'
?>
<?php
$object = new stdClass();
?>
<tr>(.+?)</tr >
$que = mysql_query("SELECT * FROM friends WHERE idaut='$login' and frilog='$myrow[login]' and ban='1'");