How to read content of one.php and write into two.php
<p>I have one file <code>one.php</code></p>

<pre><code>&lt;?php //just a php function doen't have to do any thing with the question
function B(){

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

<p>Through php I want to read <code>one.php</code> as it is and write into <code>two.php</code> as it is..<br>
<strong>Note</strong>- <code>'&lt;'</code> getting converted into <code>'$lt;'</code></p>

<p>Answer to it is </p>

<pre><code>&lt;?php
    $text = file_get_contents("one.php");
    file_put_contents("two.php", $text);
?&gt;
</code></pre>

<p>Now further what I want is add one more php function say <code>function A(){}</code> to the content of <code>one.php</code> and write it into <code>two.php</code></p>
