Definition :
In php getcwd() Function is inbuilt function. The getcwd() function returns the current working directory.
getcwd()
Given below example get the current working directory:
Output:
/home/php