Simply put, please do not abbreviate in your code.
Always code as if the guy who ends up maintaining your code will be a
violent psychopath who knows where you live. Code for readability. John F Wood
If others have to read it they will have no idea what an abbreviation means and when you come back to it in 6 months time will you remember what this does?
<?php function delHisFile($p) { // Do something }
Or
function sort(array $a) { for ($i = 0, $c = count($a); $i < $c; $i++) { // Do something } }
How does this read?
<?php function deleteHistoryFiles($path) { // Do something } function sort(array $array) { for ($index = 0, $array_count = count($array); $index < $array_count; $index++) { // Do something } }
When I started out coding for some reason I thought variables, functions, methods and class names that where long and descriptive would have an adverse effect on performance ( I know daft eh) .