SyntaxFix
Write A Post
Hire A Developer
Questions
Just use . for concatenating. And you missed out the $personCount increment!
.
$personCount
while ($personCount < 10) { $result .= $personCount . ' people'; $personCount++; } echo $result;