fixed inconsistent naming of example function

This commit is contained in:
Florian Letsch
2014-09-01 01:34:10 +02:00
parent 4fa0470064
commit f0883a74b9

View File

@@ -26,11 +26,11 @@ Consider the most basic step:
{% highlight php %}
<?php
function getAllSomethings($db) {
function getAllFoos($db) {
return $db->query('SELECT * FROM table');
}
foreach (getAllFoos() as $row) {
foreach (getAllFoos($db) as $row) {
echo "<li>".$row['field1']." - ".$row['field1']."</li>"; // BAD!!
}
{% endhighlight %}