if I want to check the value is string or int in php
<p>I have a <strong>string value</strong> from database.<br>
I need to check if this value is an integer or a string.<br>
I have tried <code>is_int</code> and <code>is_numeric</code>, but both of them are not what I need.  </p>

<p><code>is_int</code> always return false if the value is type of String while <code>is_numeric</code> return true if my the value contain number.  </p>

<p>What I am using is <code>preg_match('/^\d+$/',$value)</code>, and, I am looking for a simple solution in this case.</p>
