Compare part of the string with another string from STDLB
<p>I'm wondering if there is a function like <code>preg_match</code> in PHP where I can find or match a string with another string.</p>

<pre><code>   //In Array `word`       // in array `part`
   "Backdoor",        0        "mark"         3 (matches "Market")
   "DVD",             1        "of"           2 (matches "Get off")
   "Get off",         2        ""            -1 (no match)
   "Market",          3        "VD"           1 (matches "DVD")
</code></pre>

<p>I'm thinking that if there is a function that can match just part of the string it would be great, but as far as I know there is only <code>strcmp</code> but that will only compare if is match or not for the whole string in which my case will always be false.</p>
