It returns the current working directory
Example
<?php
echo getcwd() . “<br />”;
chdir(‘../’);
echo getcwd() ;
?>
Output
/var/www/test/date
/var/www/test