Merge pull request #427 from florianletsch/gh-pages

Fixed inconsistent naming of example function
This commit is contained in:
Phil Sturgeon
2014-10-19 15:37:21 -05:00

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 %}