Comments on Functions In PHP
Functions In PHP Functions are considered to be a complicated topic in programming and many newbies think it will cost them a hand and a leg to master them. But mark my words and mark them well - functions are your friends and they are one of the easiest and most effective things in programming to learn.
2 Comment(s)
Add comment
Comments
By:
function displayLanguages($arrLanguages) {
foreach($languages as $langName) {
echo $langName . " - ";
} //end foreach
} //end function
shouldn't be ?
function displayLanguages($arrLanguages) {
foreach($arrLanguages as $langName) {
echo $langName . " - ";
} //end foreach
} //end function
thx
By: haroon ahmad
@titex: oh yes! you are right, it is a typo. mistyped the array name :) .. Will fix it, thank you for pointing it out.