Check if PHP string contains operation characters : <p>I want to check it a sting has any of operations for calculations ex:</p>

<pre><code>$str = "part1+part2"
</code></pre>

<p>Check if <strong>$str</strong> contains any of those characters: <strong>+</strong>, <strong>-</strong>, <strong>/</strong>, or <strong>*</strong></p>

<p>Then assign each part of the sting to a variable</p>

<pre><code>$p1 = "part1";
$p2 = "part2";
$opr = "+";
</code></pre>
