How to Change Multiple lines of Numbers with URL in PHP : <p>I have a list of Numbers I want to change it in URL. </p>

<pre><code>&lt;?php 
$data "3337315417
3353100401
3337353827
 3362572506";
?&gt;
</code></pre>

<p>I want to change all of above listed numbers with URLs like below.</p>

<pre><code>&lt;a href="https://wa.me/3337315417" &gt;3337315417&lt;/a&gt;
&lt;a href="https://wa.me/3353100401" &gt;3353100401&lt;/a&gt;
&lt;a href="https://wa.me/3337353827" &gt;3337353827&lt;/a&gt;
&lt;a href="https://wa.me/3362572506" &gt;3362572506&lt;/a&gt;
</code></pre>

<p>Please tell me how to do this in PHP</p>
