PHP का diskfreespace() फंक्शन एक डायरेक्टरी में उपलब्ध फ्री स्पेस लौटाता है और यह disk_free_space() का एक उपनाम (alias) है।
सिंटैक्स
diskfreespace(dir_name)
पैरामीटर्स
dir_name − चेक की जाने वाली डायरेक्टरी।
रिटर्न वैल्यू
diskfreespace() फंक्शन बाइट्स में फ्री स्पेस लौटाता है।
उदाहरण
<?php
echo diskfreespace("/home/");
?>
आउटपुट
832931168256
आइए एक और उदाहरण देखते हैं।
उदाहरण
<?php
$free_space = diskfreespace("/home/");
echo "Free Space: $free_space";
?>
आउटपुट
Free Space: 832931168256