Two same words in string : <p>I have problem and I dont have any idea how solve it.
I have strings for example this.</p>

<pre><code>$string = "car apple computer car"
$string2 = "car apple computer"
</code></pre>

<p>I need function, which can to distinguish if string contain two same words. So for $string return 1 and for $string2 return 0</p>
