![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
凭啥告诉你
凭啥告诉你
展开
-
php curl post和get
php curl原创 2016-01-18 17:54:58 · 314 阅读 · 0 评论 -
facebook第三方登陆
可以获取到id和昵称<?php$code = $_GET['code'];$APP_ID = '521154724729510';$APP_Secret = 'f0653b91226ea43f7733a52866e942d1';$DOMAIN = 'www.shanheweb.cn';$CALL_BACK = '/fblogin.php';if (isset($code) && ($cod原创 2016-01-20 17:49:30 · 415 阅读 · 0 评论 -
判断是否为数字,时间格式
is_numeric();<?php$tests = array( "42", 1337, "1e4", "not numeric", array(), 9.1);foreach ($tests as $element) { if (is_numeric($element)) { echo "'{$element}转载 2016-01-21 14:27:02 · 211 阅读 · 0 评论 -
二维数组去重
function ceshi() { $a = array( array( 'aa' => '1', 'bb' => '3' ), array( 'aa' => '2', 'bb' =>原创 2016-01-26 19:15:15 · 408 阅读 · 0 评论 -
汉字转换拼音
$options = 'Any-Latin; Latin-ASCII; NFD; [:Nonspacing Mark:] Remove; NFC;';$str = str_replace(' ', '', trim(transliterator_transliterate($options, "躔")));echo $str;原创 2016-02-04 12:19:34 · 340 阅读 · 0 评论 -
加法
$result = 1; if (-1) { $result = 2; } echo $result; $a = 1; $b = &$a; echo ( ++$a) + ( ++$a);转载 2016-06-30 14:44:56 · 215 阅读 · 0 评论