how can open file in php

The fopen() is used to open files in PHP.Frist parameter is name of file,second is mode of file
<?php
$file=fopen("welcome.txt","r");
?>