How to Editing a PHP Page from line number and some identifier?
<p>I want to replace <strong>Data :</strong> value from <strong>Some Data</strong> to <strong>Some Other Data</strong>, and <strong>Method : ** from **Yes</strong> to <strong>No</strong>. Where identifier is only <strong>:</strong> (colon) and after that there is new line.</p>

<pre><code>&lt;?php
/* 
Data : Some Data
Method : Yes
*/
?&gt;
</code></pre>

<p>Is there any method in PHP which could do this?</p>

<p>I tried <strong>substr</strong> function, but it only separates the value from character length, and not suited for what 
I want.</p>
