php Programming Glossary: displayroomcount
PHP Typecasting - Good or bad? http://stackoverflow.com/questions/3695295/php-typecasting-good-or-bad gone to production. To illustrate this point php function displayRoomCount numBoys numGirls we'll assume both args are int check boundary.. print total people numBoys boys and numGirls girls n displayRoomCount 0 0 ok prints 0 people 0 boys and 0 girls displayRoomCount 10.. displayRoomCount 0 0 ok prints 0 people 0 boys and 0 girls displayRoomCount 10 20 ok throws an exception displayRoomCount asdf 10 wrong..
|