mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-17 19:16:20 +02:00
@@ -26,7 +26,7 @@ Consider the most basic step:
|
||||
|
||||
{% highlight php %}
|
||||
<?php
|
||||
functon getAllSomethings($db) {
|
||||
function getAllSomethings($db) {
|
||||
return $db->query('SELECT * FROM table');
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ class Foo()
|
||||
$this->db = $db;
|
||||
}
|
||||
|
||||
public functon getAllFoos() {
|
||||
public function getAllFoos() {
|
||||
return $this->db->query('SELECT * FROM table');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user