get_include_path

Gets the current include_path configuration option

Syntax

get_include_path(): string|false

Return

Returns the path, as a string, or false on failure.

Examples

1

<?

$return = get_include_path();

echo $return;

?>
.:/opt/alt/php82/usr/share/pear:/opt/alt/php82/usr/share/php:/usr/share/pear:/usr/share/php

2

<?

$option = 'include_path';

$return = ini_get($option);

echo $return;

?>
.:/opt/alt/php82/usr/share/pear:/opt/alt/php82/usr/share/php:/usr/share/pear:/usr/share/php
HomeMenu