Inconsistent¶
Inconsistent is a trait of written code, where different conventions or style are used at the same time. Inconsistent source code is more difficult to understand and often lead to misunderstanding.
One way to fight inconsistence is to make the consistent rule explicit, and to use tools that both enforce and teach them to developers.
Code may run correctly without being consistent.
<?php
$first_name = 'PHP';
$lastName = 'Elephpant';
?>
See also How NOT to write code in PHP — 5 Bad Examples, Explaining Inconsistent Code and The inconsistencies of PHP.
Related : Coding Conventions