Last active
August 29, 2015 13:57
-
-
Save Reedyn/9640497 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (student in students) { | |
// Loop through available students. | |
if (typeof student.question !== “undefined”) { | |
// If student has question, ask question. | |
student.askQuestion(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
foreach($students as $student) { | |
// Loop through available students. | |
if (isset($student->question)) { | |
// If student has question, ask question. | |
$student=>askQuestion(); | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment