I have the following code:
$chk_selectes = $_REQUEST['chk_selectes'];
It receives via REQUEST a variable with this value: 000 or 001 or 011 or 111.
I need to check each of these elements so I used:
$um = substr("$_REQUEST['chk_selectes']", 0,1);
$dois = substr("$_REQUEST['chk_selectes']", 1,1);
$tres= substr("$_REQUEST['chk_selectes']", 2,1);
but as the value of chk_selectes is 000 and this is an int this is giving error.
I've tried this:
$chk_selectes = (string) $_REQUEST['chk_selectes'];