How to substract numbers within a string in PHP?
<p>There is a string variable containing number data , say <code>$x = "OP/12/DIR";</code> . The position of the number data may change at any circumstance by user desire by modifying it inside the application , and the slash bar may be changed by any other character ; but the number data is mandatory. So how to extract the number data from the string ?</p>
