After following, you can keep track of his dynamic information in a timely manner
Courses in the relevant section:PHP intdiv() function
intdiv() 函數(shù) 接收兩個參數(shù),返回值為第一個參數(shù)除于第二個參數(shù)的值并取整 <?php echo intdiv(9,4) ."<br/>"; //返回值為2
2016-12-050個贊
Courses in the relevant section:PHP 7 Session Options
除了常規(guī)的會話配置指示項, 還可以在此數(shù)組中包含 read_and_close 選項。如果將此選項的值設(shè)置為 TRUE, 那么會話文件會在讀取完畢之后馬上關(guān)閉, 因此,可以在會話數(shù)據(jù)沒有變動的時候,避免不必要的文件鎖
2016-12-050個贊
Courses in the relevant section:PHP 7 deprecated features
廢棄了 "capture_session_meta" SSL 上下文選項。 在流資源上活動的加密相關(guān)的元數(shù)據(jù)可以通過 stream_get_meta_data() 的返回值訪問
2016-12-050個贊
Courses in the relevant section:Extensions removed in PHP 7
php7移除的擴展 ereg mssql mysql sybase_ct
2016-12-050個贊
Courses in the relevant section:PHP scalar type and return value type declaration
// 強制模式 function sum(int ...$ints) { return array_sum($ints); } print(sum(2, '3', 4.1));
2016-12-020個贊
Courses in the relevant section:SAPI removed from PHP 7
PHP7移除的SAPI aolserver apache apache_hooks apache2filter caudium continuity isapi milter nsapi phttpd pi3web roxen thttpd tux webjames
2016-12-050個贊
Courses in the relevant section:PHP NULL coalescing operator
合并運算符(??)是用于執(zhí)行isset()檢測的三元運算的快捷方式。
2016-12-020個贊
Courses in the relevant section:PHP spaceship operator (combined comparison operators)
太空船運算符(組合比較符)用于比較兩個表達式 $a 和 $b,如果 $a 小于、等于或大于 $b時,它分別返回-1、0或1。
2016-12-020個贊
Courses in the relevant section:PHP constant array
// 使用 define 函數(shù)來定義數(shù)組 define( 'sites', [1,2,3] );
2016-12-020個贊
Courses in the relevant section:PHP anonymous class
$app = new Application; // 使用 new class 創(chuàng)建匿名類 $app->setLogger(new class implements Logger { public function log(string $msg) { print($msg); } });
2016-12-020個贊
Courses in the relevant section:PHP Closure::call()
// PHP 7 之前版本定義閉包函數(shù)代碼 $getXCB = function() { return $this->x; };
2016-12-020個贊
Courses in the relevant section:PHP filter unserialize()
PHP 7 增加了可以為 unserialize() 提供過濾的特性,可以防止非法數(shù)據(jù)進行代碼注入,提供了更安全的反序列化數(shù)據(jù)
2016-12-020個贊
Courses in the relevant section:PHP IntlChar()
PHP 7 通過新的 IntlChar 類暴露出 ICU 中的 Unicode 字符特性。這個類自身定義了許多靜態(tài)方法用于操作多字符集的 unicode 字符
2016-12-020個贊
Courses in the relevant section:PHP CSPRNG
random_bytes() - 加密生存被保護的偽隨機字符串。 random_int() - 加密生存被保護的偽隨機整數(shù)
2016-12-020個贊
Courses in the relevant section:PHP 7 exception
assertion 斷言。在 PHP 5 中,是一個用于執(zhí)行的字符串或者用于測試的布爾值。在 PHP 7 中,可以是一個返回任何值的表達式 它將被執(zhí)行結(jié)果用于指明斷言是否成功。 description 如果 assertion 失敗了,選項 description 將會包括在失敗信息里。 exception 在 PHP 7 中,第二個參數(shù)可以是一個Throwable對象而不是一個字符串,如果斷言失敗且啟用了assert.exception該對象將被拋出。
2016-12-020個贊