PHP: How to get the value of the include_path: get_include_path

Various functions in PHP have options to search for files in a fixed set of directories often known as include_path. When you include another PHP file in another PHP program, the interpreter searches for the file in the directories mentioned in the include_path and reports an error if not found. The include_path value can be overwritten by a program. To get the value of the include_path

<?php
print get_include_path()."n";
?>

The output of the file is generated as follows

$php value.php
.:/usr/share/pear:/usr/share/php

PHP: How to get the default value of the include_path: get_include_path

Various functions in PHP have options to search for files in a fixed set of directories often known as include_path. When you include another PHP file in another PHP program, the interpreter searches for the file in the directories mentioned in the include_path and reports an error if not found. The include_path value can be overwritten by a program. To get the default value of the include_path

<?php
print get_include_path()."n";
?>

The output of the file is generated as follows

$php value.php
.:/usr/share/pear:/usr/share/php