本文整理汇总了PHP中JDate::weiboDateToTimeStamp方法的典型用法代码示例。如果您正苦于以下问题:PHP JDate::weiboDateToTimeStamp方法的具体用法?PHP JDate::weiboDateToTimeStamp怎么用?PHP JDate::weiboDateToTimeStamp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JDate
的用法示例。
在下文中一共展示了JDate::weiboDateToTimeStamp方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setGuest
static function setGuest($user, mysqli $mysqli)
{
$sql = "insert into guests(uid,name,profile_img,province,city,gender,followers_count,friends_count,statuses_count,created_at,verified) values(?,?,?,?,?,?,?,?,?,?,?)";
$stmt = $mysqli->prepare($sql);
if ($mysqli->errno) {
echo $mysqli->error;
}
$stmt->bind_param("sssiisiiiis", $uid, $name, $profile_img, $province, $city, $gender, $followers_count, $friends_count, $statuses_count, $created_at, $verified);
$uid = $user['id'];
$name = $user['name'];
$profile_img = $user['profile_image_url'];
$province = $user['province'];
$city = $user['city'];
$gender = $user['gender'];
$followers_count = $user['followers_count'];
$friends_count = $user['friends_count'];
$statuses_count = $user['statuses_count'];
$created_at = JDate::weiboDateToTimeStamp($user['created_at']);
$verified = $user['verified'];
$stmt->execute();
if ($stmt->errno) {
echo "stmterro:" . $stmt->error;
}
$stmt->close();
}