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 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. 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). 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. 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* 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. 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
Archived
This topic is now archived and is closed to further replies.