evaluating the required input from a html field which holds 0 as value?
<p>I have some of radio buttons and checkboxes elements in my HTML form which holds 0 as value. typically i would check for the required values using two functions <code>isset()</code> or <code>!empty()</code> while <code>isset()</code> works quite well without hindrance but this is not the case with <code>empty()</code> as logically 0 represents boolean and hence <code>empty(0)</code> returns true. which is kind of bug when you evaluates integer 0 using <code>empty()</code>. i would like to know the workaround so that it evaluates integer <code>empty(0)</code> as false. one solution i could think of was using <code>strlen($variable) &gt;= 1</code> , is there any better way or it is fine using <code>strlen()</code>?</p>

<p>thank you</p>
