PHP: Remove line ending with ( and remove line starting with ) and grab second word of every line
<p>I have a sample string as shown below. In the string, how can I remove line ending with ( and remove line starting with ) and grab second word of every line?</p>

<pre><code>This is some text (
some more text,
one line text,
more and more text available,
this one is even longer and even more text is available,
) this is the last line;

This is also some more text (
Second time some more text,
one line text second time ,
Once again more and more text available,
finally this one is even longer and even more text is available,
) this is the last line;
</code></pre>

<p>The string shown above comes from a text file. Can be either pasted in a textarea or a file could be uploaded and this text will be read from the file. So in the example shown above, expected output is:</p>

<pre><code>some more text,
one line text,
more and more text available,
this one is even longer and even more text is available,

Second time some more text,
one line text second time ,
Once again more and more text available,
finally this one is even longer and even more text is available,

//words are
more
line
and
one
time
line
again
this
</code></pre>

<p>How to do the above in PHP?</p>
