codeguy/php-the-right-way — pull request #427 by florianletsch (2014-08-31 23:37:12+00:00)
Title: Fixed inconsistent naming of example function

I noticed inconsistent naming of an example function.

So I suggest a change from this:

```php
function getAllSomethings($db) {
return $db->query('SELECT * FROM table');
}

foreach (getAllFoos() as $row) {
echo "
".$row['field1']." - ".$row['field1']."
"; // BAD!!
}
```

...to this:

```php
function getAllFoos($db) {
return $db->query('SELECT * FROM table');
}

foreach (getAllFoos($db) as $row) {
echo "
".$row['field1']." - ".$row['field1']."
"; // BAD!!
}
```