PHP get_include_path() Function Last Updated : 23 Jul, 2025 Comments Improve Suggest changes 2 Likes Like Report The get_include_path() function is an inbuilt function in PHP that returns the current include_path to the caller. Syntax: string|false get_include_path()Parameter: This function does not accept any parameters. Return Value: This function returns the path in the string format, or "false" otherwise. Example 1: In the below code example, we will use the get_include_path() function to the print path. PHP <?php echo get_include_path() ; ?> Output: usr/share/php Note: Output will be different according to your system. Example 2: In the below code example, both the paths are compared and the output is printed. PHP <?php $path1 = get_include_path() ; $path2 = ini_get('include_path') ; if($path1 == $path2){ echo "Both the paths are same." ; } else { echo "Both the paths are not same." ; } ?> Output: Both the paths are same Reference: https://www.php.net/manual/en/function.get-include-path.php Create Quiz Comment N neeraj3304 Follow 2 Improve N neeraj3304 Follow 2 Improve Article Tags : PHP PHP-function PHP-Options-info Explore BasicsPHP Syntax4 min readPHP Variables5 min readPHP | Functions6 min readPHP Loops4 min readArrayPHP Arrays5 min readPHP Associative Arrays4 min readMultidimensional arrays in PHP5 min readSorting Arrays in PHP4 min readOOPs & InterfacesPHP Classes2 min readPHP | Constructors and Destructors5 min readPHP Access Modifiers4 min readMultiple Inheritance in PHP4 min readMySQL DatabasePHP | MySQL Database Introduction4 min readPHP Database connection2 min readPHP | MySQL ( Creating Database )3 min readPHP | MySQL ( Creating Table )3 min readPHP AdvancePHP Superglobals6 min readPHP | Regular Expressions12 min readPHP Form Handling4 min readPHP File Handling4 min readPHP | Uploading File3 min readPHP Cookies9 min readPHP | Sessions7 min read Like