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