PHP getcwd() Function

PHP getcwd Function


Definition :

In php  getcwd() Function is inbuilt function. The getcwd() function returns the current working directory.

Syntax

    getcwd()

Given below example get the current working directory:

Output:

/home/php