View source for PHP

{{toc numerate=1}}

  1. http://git.php.net/?p=php-src.git&a=summary
  2. https://github.com/php/php-src
  3. https://wiki.php.net/vcs/gitworkflow
  4. https://www.php.net/manual/en/doc.changelog.php
  5. https://www.php.net/supported-versions.php
  4. https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/
  5. http://www.phptherightway.com/
  6. http://www.phpthewrongway.com/


-> ((/Dev/Guidelines/CodeConventions))
===Quotes===
Understand the ((https://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.single difference between single and double quotes)). Use whichever is more appropriate. 

===Indentation===
Indentation should follow the logical structure of the code. Use real tabs not spaces.

===Difference between isset empty is_null===

Comparison Table

#|
*|TEST |Not Set |NULL |Zero |FALSE |Numeric Value |Empty String |*
||isset() |bool(false) |bool(false) |bool(true) |bool(true) |bool(true) |bool(true) ||
||empty() |bool(true)  |bool(true)  |bool(true) |bool(true) |bool(false) |bool(true) ||
||is_null() |bool(true)  |bool(true)  |bool(false) |bool(false) |bool(false) |bool(false) ||
||== |bool(true)  |bool(true) |bool(true) |bool(true) |bool(false) |bool(true)  ||
||=== |bool(false) |bool(false) |bool(false) |bool(true) |bool(false) |bool(false) ||
|#

https://www.php.net/manual/de/types.comparisons.php

====##isset($vars[1]) AND !empty($vars[1])##====
<[##empty()## is the opposite of ##(boolean) var##, **except that no warning is generated when the variable is not set**.]>
Use simply ##!empty($vars[1])## here.

##if ($vars === [])##
===List of Parser Tokens===
https://www.php.net/manual/en/tokens.php

===Pattern Modifiers===
{{include page="!/PHPRegex"}}

===Online services===
  * https://onlinephp.io/ - test and compare your PHP code on 400+ PHP versions with this online editor