This program have syntax error on line
$ missing for numgirls.Code:echo 'Total number of students = ' . ($numboys+numgirls) ;
Proper usage.
Only strings values need to be enclosed within quotes (' or ").Code:<?php $numBoys = 20; $numGirls = 25; echo 'Total number of students = ' . ($numBoys + $numGirls) ;
Variable names, if two words, Capitalize first letter of 2nd, 3rd, etc.. word.





Reply With Quote
Bookmarks