phrozenflame Posted December 29, 2006 Share Posted December 29, 2006 is it best to typecast each and every variable you use, like to make it a habit of always and every single time you create a variable you typecast it to what you want it to be set too. Link to comment https://forums.phpfreaks.com/topic/32137-solved-type-cast/ Share on other sites More sharing options...
corbin Posted December 29, 2006 Share Posted December 29, 2006 Umm by type cast do you mean like $var = (int) 4;Or what do you mean? Cause if thats what you mean, I've never ever used a variable like that :p. Link to comment https://forums.phpfreaks.com/topic/32137-solved-type-cast/#findComment-149153 Share on other sites More sharing options...
maexus Posted December 29, 2006 Share Posted December 29, 2006 It's a good habit as other languages require it. I never do it though. Link to comment https://forums.phpfreaks.com/topic/32137-solved-type-cast/#findComment-149155 Share on other sites More sharing options...
trq Posted December 29, 2006 Share Posted December 29, 2006 PHP handles this for you so no. Link to comment https://forums.phpfreaks.com/topic/32137-solved-type-cast/#findComment-149160 Share on other sites More sharing options...
phrozenflame Posted December 29, 2006 Author Share Posted December 29, 2006 Ok thnak you Link to comment https://forums.phpfreaks.com/topic/32137-solved-type-cast/#findComment-149199 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.