PHP get_include_path() Function Last Updated : 28 Apr, 2025 Summarize Comments Improve Suggest changes Share Like Article 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 Comment More infoAdvertise with us Next Article PHP set_include_path() Function N neeraj3304 Follow Improve Article Tags : PHP PHP-function PHP-Options-info Similar Reads PHP set_include_path() Function The set_include_path() function is an inbuilt function in PHP that sets the include_path configuration option. Syntax: string|false set_include_path(string $include_path)Parameters: This function accepts one parameter that is described below: $include_path: This parameter specifies the new value for 1 min read PHP get_included_files() Function The get_included_files() is an inbuilt function that returns an array with names of included or required files. Syntax: get_included_files(): array Parameters: This function does not accept any parameters. Return Values: It returns an array of the names of files. Example 1: This example demonstrate 1 min read PHP | getcwd( ) Function The getcwd() function in PHP is an inbuilt function which is used to return the current working directory. This function does not accepts any parameter and returns the current working directory on successful function call or FALSE on failure. Syntax: getcwd() Parameters: This function does not accep 2 min read PHP | ImagickDraw pathStart() Function The ImagickDraw::pathStart() function is an inbuilt function in PHP which is used to declare the start of a path drawing list. Later, pathFinish() function is used to terminate this list. Syntax: bool ImagickDraw::pathStart( void ) Parameters: This function doesnât accept any parameters. Return Valu 2 min read PHP | ImagickDraw pathFinish() Function The ImagickDraw::pathFinish() function is an inbuilt function in PHP which is used to terminate the current path. This is required when multiple paths are to be drawn in the image. Syntax: bool ImagickDraw::pathFinish( void ) Parameters: This function doesnât accepts any parameter. Return Value: Thi 2 min read PHP | pathinfo( ) Function The pathinfo() is an inbuilt function which is used to return information about a path using an associative array or a string. The returned array or string contains the following information:  Directory nameBasenameExtension The path and options are sent as a parameters to the pathinfo() function a 2 min read Like