<p>i want something like this</p>

<ol>
<li><p>the user enter a website link</p></li>
<li><p>i need check the link if the link
doesn't start with 'http://' I want
to append 'http://' to the link .</p></li>
</ol>

<p>how can I do that in PHP ? </p>

```
```
if (stripos($url, 'http://') !== 0) {
   $url = 'http://' . $url;
}
```
```