How to use file_get_contents in php ? , my code does not work
<p>this piece of code is in a php file, it does not create or open a file    </p>

<pre><code>&lt;?php

function file_stuff(){
    $text = "hello world";
    file_put_contents("myFirst.txt","$text");
    $text1 = file_get_contents("myFirst.txt");
    print "$text1";
}

# main program
file_stuff();

?&gt;
</code></pre>
