Thread: Bool detection
View Single Post
  #13  
Old 12-14-2007, 04:39 PM
gemini2 gemini2 is offline
Fincayran Loser
gemini2's Avatar
Join Date: Jun 2007
Location: Georgia
Posts: 174
gemini2 is on a distinguished road
Send a message via AIM to gemini2 Send a message via MSN to gemini2
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
__________________
Quote:
Originally Posted by Crystia RC
*Angelu: i said the tuba isnt fitting
Oinkness: well use some lube
Quote:
Originally Posted by Angelu View Post
for me the hole is to big and its a way to thin :O
Reply With Quote