PHP scramble txt file while keeping some parts the same
<p>consider a  txt file like this </p>

<pre><code>@[111:a]@[222:a]@[333:a]
@[444:a]@[555:a]@[666:a]
@[777:a]@[888:a]@[999:a]
</code></pre>

<p>and I want to scramble it in such a way that the values between @[ and :a] are reordered randomly like the example below:</p>

<pre><code>@[777:a]@[555:a]@[999:a]
@[444:a]@[222:a]@[888:a]
@[111:a]@[666:a]@[333:a]
</code></pre>
