pTutorial

New way to learn PHP function

PHP getcwd() Function

Syntax

getcwd();

Definition

It returns the working directory of the file in the form of string otherwise return false.

Usage

getcwd() function is used to find the path of the current script.

Example of getcwd function

<?php

var_dump( getcwd() );

echo getcwd();

?>

QUOTES OF THE DAY

Impossible is a word only be found in the dictionary of fools.

LIKE ON FACEBOOK

+1 ON GOOGLE

SHARE ON TWITTER