![](/themes/images/default.png)
Hàm microtime() trong PHP - PHP Function
Code echo microtime() . "<br />"; echo microtime(true);
![](/themes/images/default.png)
Hàm mktime() trong PHP - PHP Function
Code $timestamp = mktime(21,30,45,5,19,2013); echo "Ngày: ". date("H:i:s d/m/Y", $timestamp) . "<br />"; echo "Timestamp: " . $timestamp;
![](/themes/images/default.png)
Hàm strftime() trong PHP - PHP Function
Code setlocale(LC_TIME, "en_Us"); echo strftime("%A %d-%B-%Y", mktime(21,30,45,5,16,2013));
![](/themes/images/default.png)
Hàm strtotime() trong PHP - PHP Function
Code $format = "%H:%M:%S %d-%B-%Y"; echo $strTime = strftime($format, mktime(21,30,45,5,16,2013)); echo "<br />"; echo "Timestamp:" . strtotime($strTime);
![](/themes/images/default.png)
Hàm time() trong PHP - PHP Function
Code $format = "%H:%M:%S %d-%B-%Y"; $timestamp = time(); echo $strTime = strftime($format, $timestamp ); echo "<br />"; echo "Timestamp:" . $timestamp;
![](/themes/images/default.png)
Hàm timezone_abbreviations_list() trong PHP - PHP Function
Code $arr = timezone_abbreviations_list(); echo "<pre>"; print_r($arr); echo "</pre>";
![](/themes/images/default.png)
Hàm timezone_location_get() trong PHP - PHP Function
Code $timezone = date_default_timezone_get(); $arr = timezone_location_get(timezone_open($timezone)); echo "<pre>"; print_r($arr); echo "</pre>";
![](/themes/images/default.png)
Hàm timezone_name_get() trong PHP - PHP Function
Code $timezone = date_default_timezone_get(); $object = timezone_open($timezone); $name = timezone_name_get($object); echo $name;
![](/themes/images/default.png)
Hàm timezone_offset_get() trong PHP - PHP Function
Code $date = date_create(); $timezoneOb = timezone_open('Asia/Ho_Chi_Minh'); echo timezone_offset_get($timezoneOb, $date);
![](/themes/images/default.png)
Hàm timezone_open() trong PHP - PHP Function
Code $timezoneOb = timezone_open('Europe/London'); echo "<pre>"; print_r($timezoneOb ); echo "</pre>";
![](/themes/images/default.png)
Hàm intval() trong PHP - PHP Function
Hàm intval có tác dụng chuyển đổi một biến hoặc một giá trị sang kiểu số nguyên ( integer ). Description int intval ( $var, $base = 10) Hàm có hai tham số, tham số đầu tiên là bắt buộc và tham số thứ 2 là không bắt buộc. Hàm sẽ chuyển đổi giá ...
![](/themes/images/default.png)
Hàm gettype() trong PHP - PHP Function
Code $var1 = 'Zaidap.com.net'; echo gettype($var1) . '<br />'; $var2 = 23; echo gettype($var2) . '<br />'; $var3 = 4.575; echo gettype($var3);
![](/themes/images/default.png)
Hàm is_array() trong PHP - PHP Function
Code $var = [ 'php', 'js', 'css' ]; if (is_array($var)) { echo 'đây là một mảng dữ liệu'; }else{ echo 'đây không phải là một mảng dữ liệu'; }
![](/themes/images/default.png)
Hàm is_bool() trong PHP - PHP Function
Code $var = TRUE; //hàm sẽ trả về TRUE vì $var thuộc kiểu logic if (is_bool($var)) { echo 'biến thuộc kiểu logic <br />'; }else{ echo 'biến không thuộc kiểu logic <br />'; } Kết quả biến thuộc kiểu logic
![](/themes/images/default.png)
Hàm is_callable() trong PHP - PHP Function
Biến có giá trị là một chuỗi đơn giản: Code function showFunction() { } $functionVariable = 'showFunction'; var_dump(is_callable($functionVariable, true, $callable_name)); echo '<br />'; echo $callable_name; ...
![](/themes/images/default.png)
Hàm is_float() trong PHP - PHP Function
Code $var = 24.0895; if (is_float($var)) { echo 'biến thuộc kiểu float'; }else{ echo 'biến không thuộc kiểu float'; } Kết quả biến thuộc kiểu float
![](/themes/images/default.png)
Hàm is_double() trong PHP - PHP Function
Code $var = 24.0895; if (is_double($var)) { echo 'biến thuộc kiểu float'; }else{ echo 'biến không thuộc kiểu float'; } Kết quả biến thuộc kiểu float
![](/themes/images/default.png)
Hàm is_int() trong PHP - PHP Function
Code $var = 24; if (is_int($var)) { echo 'biến thuộc kiểu số nguyên'; }else{ echo 'biến không thuộc kiểu số nguyên'; } Kết quả biến thuộc kiểu số nguyên
![](/themes/images/default.png)
Hàm is_integer() trong PHP - PHP Function
Code $var = 'Zaidap.com.net'; if (is_integer($var)) { echo 'biến thuộc kiểu số nguyên'; }else{ echo 'biến không thuộc kiểu số nguyên'; } Kết quả biến không thuộc kiểu số nguyên
![](/themes/images/default.png)
Hàm is_null() trong PHP - PHP Function
Code $var = 'Zaidap.com.net'; if (is_null($var)) { echo 'biến mang giá trị rỗng'; }else{ echo 'biến mang giá trị khác rỗng'; } Kết quả biến mang giá trị khác rỗng