$value) $_GET[$key] = trim($value); GET , . ................................................................................ $_GET['id'] = isset($_GET['id']) ? intval($_GET['id']) : null; , - ................................................................................ function dirsize($size) { $kor = $_SERVER['DOCUMENT_ROOT']; $kor = preg_replace('/[A-Z]\:/','',$kor); $size = disk_free_space($kor.$size); if ($size >= 1073741824) { $size = round($size / 1073741824 * 100) / 100 . ' Gb'; } elseif ($size >= 1048576) { $size = round($size / 1048576 * 100) / 100 . ' Mb'; } elseif ($size >= 1024) { $size = round($size / 1024 * 100) / 100 . ' Kb'; } else { $size = $size . ' b'; } return $size; } echo dirsize('/'); ................................................................................ foo = 5; ${strtok('foo_bar', '_')} = 7; # $foo 7 ................................................................................ , , . <?php /* * Copyright (C) 2010 by Destroy * */ function getExt($path) { $path = pathinfo($path); return $path['extension']; } // by Morgan function ext($filename){return strtolower(pathinfo($filename, PATHINFO_EXTENSION));} ---------------------------------------------
назад
перейти
в начало
В библиотеку

на главную



..
(c) xika.ru