mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-09 15:36:36 +02:00
Fixed typos
This commit is contained in:
@@ -12,7 +12,7 @@ Lithium, etc are starting to adopt. You can use them for your own projects, or c
|
|||||||
|
|
||||||
Ideally you should write PHP code that adheres to one or more of these standards so that other developers can easily
|
Ideally you should write PHP code that adheres to one or more of these standards so that other developers can easily
|
||||||
read and work with your code, and applications that implement the components can have consistency even when working with
|
read and work with your code, and applications that implement the components can have consistency even when working with
|
||||||
lots of third-party code. The first few recommendations are designed to be a super-set of the previous recomendation.
|
lots of third-party code. The first few recommendations are designed to be a super-set of the previous recommendation.
|
||||||
|
|
||||||
* [Read about PSR-0][psr0]
|
* [Read about PSR-0][psr0]
|
||||||
* [Read about PSR-1][psr1]
|
* [Read about PSR-1][psr1]
|
||||||
|
@@ -11,7 +11,7 @@ the years, notably adding a solid object-oriented model in PHP 5.0 (2004), anony
|
|||||||
### Object-oriented Programming
|
### Object-oriented Programming
|
||||||
|
|
||||||
PHP has a very complete set of object-oriented programming features including support for classes, abstract classes,
|
PHP has a very complete set of object-oriented programming features including support for classes, abstract classes,
|
||||||
interfaces, inheritence, constructors, cloning, exceptions, and more.
|
interfaces, inheritance, constructors, cloning, exceptions, and more.
|
||||||
|
|
||||||
* [Read about Object-oriented PHP][oop]
|
* [Read about Object-oriented PHP][oop]
|
||||||
* [Read about Traits][traits]
|
* [Read about Traits][traits]
|
||||||
|
@@ -13,7 +13,7 @@ database — and that can get silly.
|
|||||||
|
|
||||||
As an extra note on native drivers, the mysql extension for PHP is no longer in active development, and the official status since PHP 5.4.0 is
|
As an extra note on native drivers, the mysql extension for PHP is no longer in active development, and the official status since PHP 5.4.0 is
|
||||||
"Long term deprecation". This means it will be removed within the next few releases, so by PHP 5.6 (or whatever comes after 5.5) it may well be gone. If you are using `mysql_connect()` and `mysql_query()` in your applications then you will be faced with a rewrite at some point down the
|
"Long term deprecation". This means it will be removed within the next few releases, so by PHP 5.6 (or whatever comes after 5.5) it may well be gone. If you are using `mysql_connect()` and `mysql_query()` in your applications then you will be faced with a rewrite at some point down the
|
||||||
line, so the best option is to replace mysql usage with mysqli or PDO in your applications within your own development shedules so you won't
|
line, so the best option is to replace mysql usage with mysqli or PDO in your applications within your own development schedules so you won't
|
||||||
be rushed later on. _If you are starting from scratch then absolutely do not use the mysql extension: use the [MySQLi extension][mysqli], or use PDO._
|
be rushed later on. _If you are starting from scratch then absolutely do not use the mysql extension: use the [MySQLi extension][mysqli], or use PDO._
|
||||||
|
|
||||||
* [PHP: Choosing an API for MySQL](http://php.net/manual/en/mysqlinfo.api.choosing.php)
|
* [PHP: Choosing an API for MySQL](http://php.net/manual/en/mysqlinfo.api.choosing.php)
|
||||||
|
Reference in New Issue
Block a user