pandu Posted June 18, 2009 Share Posted June 18, 2009 Hello, Check out the following code. What is that int thingy doing? Is that a secret PHP function? Its certainly not defined anywhere else in the code I am looking at. $this->languages_id = (int)$languages_id; TIA Quote Link to comment https://forums.phpfreaks.com/topic/162800-solved-is-int-a-secret-php-function/ Share on other sites More sharing options...
J.Daniels Posted June 18, 2009 Share Posted June 18, 2009 It is type casting the value of $languages_id to be of type int. Quote Link to comment https://forums.phpfreaks.com/topic/162800-solved-is-int-a-secret-php-function/#findComment-859071 Share on other sites More sharing options...
Maq Posted June 18, 2009 Share Posted June 18, 2009 It's type casting $langauges_id to an integer. Read more here - Type Juggling (scroll down to Type Casting). Quote Link to comment https://forums.phpfreaks.com/topic/162800-solved-is-int-a-secret-php-function/#findComment-859074 Share on other sites More sharing options...
pandu Posted June 18, 2009 Author Share Posted June 18, 2009 Thanks J.Daniels and Mag. Quote Link to comment https://forums.phpfreaks.com/topic/162800-solved-is-int-a-secret-php-function/#findComment-859077 Share on other sites More sharing options...
Maq Posted June 18, 2009 Share Posted June 18, 2009 Maq* Quote Link to comment https://forums.phpfreaks.com/topic/162800-solved-is-int-a-secret-php-function/#findComment-859078 Share on other sites More sharing options...
pandu Posted June 21, 2009 Author Share Posted June 21, 2009 My bad Maq. Quote Link to comment https://forums.phpfreaks.com/topic/162800-solved-is-int-a-secret-php-function/#findComment-860650 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.