
Hàm parse_ini_string() trong PHP - PHP Function
Code //lấy về chuỗi ini $str = file_get_contents('C:xamppphpphp.ini'); $arr = parse_ini_string($str); echo "<pre>"; print_r($arr); echo "</pre>";

Hàm pathinfo() trong PHP - PHP Function
Code $path = 'C:xamppphpphp.ini'; $arr = pathinfo($path); echo "<pre>"; print_r($arr); echo "</pre>";

Hàm readfile() trong PHP - PHP Function
Code $path = 'test.txt'; file_put_contents('test.txt', 'this a test'); readfile($path);

Hàm readlink() trong PHP - PHP Function
Code // output e.g. /boot/vmlinux-2.4.20-xfs echo readlink('/vmlinuz');

Hàm realpath_cache_get() trong PHP - PHP Function
Code echo "<pre>"; print_r(realpath_cache_get()); echo "</pre>";

Hàm realpath_cache_size() trong PHP - PHP Function
Code echo "<pre>"; print_r(realpath_cache_size()); echo "</pre>";

Hàm realpath() trong PHP - PHP Function
Code $path = './test.txt'; echo realpath($path);

Hàm rename() trong PHP - PHP Function
Code mkdir('test'); $path = 'test/test.txt'; file_put_contents($path, 'this is a test'); rename($path, 'example.txt');

Hàm rewind() trong PHP - PHP Function
Code $path = 'example.txt'; $fp = fopen($path, 'r+a+'); fseek($fp, 5); echo ftell($fp)."<br />"; rewind($fp); echo ftell($fp);

Hàm rmdir() trong PHP - PHP Function
Code if (!is_dir('examples')) { mkdir('examples'); } rmdir('examples');

Hàm symlink() trong PHP - PHP Function
Code $target = 'uploads.php'; $link = 'uploads'; symlink($target, $link); echo readlink($link);

Hàm tempnam() trong PHP - PHP Function
Code echo $tmpfname = tempnam("./example/", "test"); $handle = fopen($tmpfname, "w"); fwrite($handle, "this is a test string"); fclose($handle);

Hàm tmpfile() trong PHP - PHP Function
Code $temp = tmpfile(); fwrite($temp, "this is a test file content"); fseek($temp, 0); echo fread($temp, 1024); fclose($temp); // this removes the file

Hàm touch() trong PHP - PHP Function
Code $filename = 'example.txt'; if (touch($filename)) { echo $filename . ' modification time has been changed to present time'; } else { echo 'Sorry, could not change modification time of ' . $filename; }

Hàm checkdate() trong PHP - PHP Function
Code if (checkdate(12,3,1995) == true) { echo "ngày 12-3-1995 là ngày hợp lệ <br />"; }else{ echo "ngày 12-3-1995 là ngày không hợp lệ <br />"; } if (checkdate(30,2,1995) == true) { echo "ngày 30-2-1995 là ngày hợp lệ <br />"; }else{ echo "ngày 30-2-1995 ...

Hàm date_add() trong PHP - PHP Function
Code $date = date_create('2017-4-30'); date_add($date, date_interval_create_from_date_string('10 days')); echo date_format($date, 'Y-m-d');

Hàm date_create_from_format() trong PHP - PHP Function
Code $date = date_create_from_format('j-M-Y', '30-APR-2017'); echo "<pre>"; print_r($date); echo "</pre>";

Hàm date_create() trong PHP - PHP Function
Code $date = date_create('30-04-2017'); echo "<pre>"; print_r($date); echo "</pre>";

Hàm date_date_set() trong PHP - PHP Function
Code $date = date_create(); echo "<pre>"; print_r($date); echo "</pre>"; date_date_set($date, 1996, 02, 27); echo "<pre>"; print_r($date); echo "</pre>";

Hàm date_default_timezone_get() trong PHP - PHP Function
Code $timezone = date_default_timezone_get(); echo $timezone;