Well, the problem I thought would arise was when I was going to make it into an object again.. But I guess I'll just do that you guys said, to check if its either 0 or 1..
And about me making a parsing function is basically that Chompy told me that making parsing stuff is good practice :O
But some way to detect if it was a bool or an integer would be nice, for example:
PHP Code:
temp.bool = true;
echo(temp.bool.isBool());
// would echo 1
temp.integer = 1;
echo(temp.integer.isBool());
// would echo 0
Anyways, thanks guys