Ninjakreborn Posted April 18, 2006 Share Posted April 18, 2006 <?php $bool = true; print "Bool is set to $bool\n"; $bool = false; print "Bool is set to "; print (int)$bool;?> I was wondering about one thing in this script.what is the (int) mean. I know bool is just a variable create which is short fo boolean, and it's set to the booleon true, here is the website it came off of the exact page actually I was just wondering if int was a preset something in php or something he named himself or what, and what it does.[a href=\"http://www.hudzilla.org/phpbook/read.php/3_3_0\" target=\"_blank\"]http://www.hudzilla.org/phpbook/read.php/3_3_0[/a] Quote Link to comment Share on other sites More sharing options...
poirot Posted April 18, 2006 Share Posted April 18, 2006 Type-casting. Quote Link to comment Share on other sites More sharing options...
Ninjakreborn Posted April 18, 2006 Author Share Posted April 18, 2006 ok so I can safetly say that (int) is the same as (integer) which is the proper usage. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.