PHP coding challenge

Sorting arrays by key

✨ Your Task

Sort people by name and return as a comma separated list of names.

āœļø PHP PHP version: 8.1
šŸ‘‰ Press "Run" and check the result below.
Test cases
Function sort_people() should return a string value Barack, Donald, Joe