I think that programmers should have some interesting convention on variable names. I have seen many places that say that some variable names are very efficient, like
common variable names
- $ link
- $ db
- $ connection
- $ request
- $ STMT
- $ SQL
- $ QRY
- $ exit
- $ result
- $ list
Therefore, please offer me some good names for the variable, because all the time I have to write $x, $y , etc., if I want to save something instantly on the page ... which are not even relevant, therefore, please suggest me good variable names
one more question:
The values ββof long file names and variables / classes / objects before and after = affect the performance of the php page. for example, to get some data from db, which I used to write below code with long names
include_once "../libs/databaseConnection.class.php"; $objDatabaseConnection = new databaseConnection(); $query = some query; $arrFetchResult = $objDatabaseConnection->fetchByAssoc($query);
instead, if I change the name of the class and delete the tabs before and after = and change the methods a bit
include_once "../libs/db.config.php"; $db=new dbClass(); $qry=some query; $output=$db->fetch($qry,"assoc");
Does this affect page performance? This is my real question.
source share