php Programming Glossary: coding
Can't use method return value in write context http://stackoverflow.com/questions/1075534/cant-use-method-return-value-in-write-context but please note that it promotes bad unnecessary coding practices See @porneL's answer for the correct way. Note #2..
Converting words to numbers in PHP http://stackoverflow.com/questions/1077600/converting-words-to-numbers-in-php apps would become iPhone as 230783 apps Before i start coding I would like to know if any function code exists for this conversion...
Why shouldn't I use mysql_* functions in PHP? http://stackoverflow.com/questions/12859942/why-shouldnt-i-use-mysql-functions-in-php lists. Hybrid PDO use These pdo_ wrapper functions make a coding friendly stop gap API. It's pretty much what MYSQLI could have..
Global or Singleton for database connection? http://stackoverflow.com/questions/130878/global-or-singleton-for-database-connection border line Future Creep but at some point the idea that coding for tomorrow today is always a bad thing doesn't jive for me...
PHP: Access Array Value on the Fly http://stackoverflow.com/questions/13109/php-access-array-value-on-the-fly the fact that i use a variable for nothing php arrays coding style share improve this question I wouldn't bother about..
The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead http://stackoverflow.com/questions/13944956/the-mysql-extension-is-deprecated-and-will-be-removed-in-the-future-use-mysqli your solution in a staging environment. Following good coding practice your application was developed in a loosely integrated..
simple explanation PHP OOP vs Procedural? http://stackoverflow.com/questions/1530868/simple-explanation-php-oop-vs-procedural sit down with you once and a while and review good coding practices and 3 access to a site like Stack Overflow when you.. is just the next highest level of chunking including coding style and conventions that one or more people agree on because..
PHP Parse/Syntax Errors; and How to solve them? http://stackoverflow.com/questions/18050071/php-parse-syntax-errors-and-how-to-solve-them programming questions. Therefore answering everyones coding mistakes and very narrow typos is mostly considered off topic... and language tokens as the parser can't second guess coding intentions. Tips to avoid syntax faux pas There are a few basic.. always take Proper code indentation or adopting any lofty coding style. Readability prevents irregularities. Using an IDE or..
Are PHP short tags acceptable to use? http://stackoverflow.com/questions/200640/are-php-short-tags-acceptable-to-use an important factor so why are they not recommended php coding style php shorttags share improve this question They're..
Using a regular expression to validate an email address http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address is some danger that common usage and widespread sloppy coding will establish a de facto standard for e mail addresses that..
Invalid argument supplied for foreach() http://stackoverflow.com/questions/2630013/invalid-argument-supplied-for-foreach Wrapping the foreach with an if Other please suggest php coding style foreach php errors share improve this question Personally..
'AND' vs '&&' as operator http://stackoverflow.com/questions/2803321/and-vs-as-operator ' and ' more readable than ' ' there is ~ difference php coding style operators share improve this question If you use AND..
What kinds of patterns could I enforce on the code to make it easier to translate to another programming language? http://stackoverflow.com/questions/3455456/what-kinds-of-patterns-could-i-enforce-on-the-code-to-make-it-easier-to-translat will embrace an MVC design pattern and follow strict coding conventions. This should make translation somewhat easier. I..
How should I choose an authentication library for CodeIgniter? http://stackoverflow.com/questions/346980/how-should-i-choose-an-authentication-library-for-codeigniter bolting the front. Moreover if you're serious enough about coding to choose a best practices framework like CodeIgniter you owe..
What's better at freeing memory with PHP: unset() or $var = null http://stackoverflow.com/questions/584960/whats-better-at-freeing-memory-with-php-unset-or-var-null than the other. I have been using unset for most of my coding but I've recently looked through a few respectable classes found..
Reference: What is a perfect code sample using the MySQL extension? [closed] http://stackoverflow.com/questions/6198104/reference-what-is-a-perfect-code-sample-using-the-mysql-extension it be made Community Wiki. This is not meant as a coding contest. It's not about finding the fastest or most compact..
PHP Pass variable to next page http://stackoverflow.com/questions/871858/php-pass-variable-to-next-page new instance of the script caught me when I first started coding in PHP. Once you get used to it it's quite simple though. share..
Error handling in PHP http://stackoverflow.com/questions/134331/error-handling-in-php in your web application into a log. This way as Jeff Coding Horror Atwood suggests you'll know when your users are experiencing..
Which Coding convention to follow for PHP? [closed] http://stackoverflow.com/questions/139427/which-coding-convention-to-follow-for-php Coding convention to follow for PHP closed Should I stick with Sun's..
Family tree visualization javascript http://stackoverflow.com/questions/17653327/family-tree-visualization-javascript
PHP coding conventions? http://stackoverflow.com/questions/1863790/php-coding-conventions standards php share improve this question Zends Coding Standard http framework.zend.com manual en coding standard.html..
Extracting data form XML file with SimpleXML in PHP http://stackoverflow.com/questions/2578469/extracting-data-form-xml-file-with-simplexml-in-php category name Category level 3 category category catalog Coding example xml holds the XML file foreach xml AS category_level1..
PHP coding standards http://stackoverflow.com/questions/307089/php-coding-standards
Best practices for naming conventions [closed] http://stackoverflow.com/questions/332831/best-practices-for-naming-conventions to follow. Here are a few good examples Zend Framework Coding Standard for PHP PEAR Coding Standards Horde Coding Standards.. good examples Zend Framework Coding Standard for PHP PEAR Coding Standards Horde Coding Standards And remember most important.. Coding Standard for PHP PEAR Coding Standards Horde Coding Standards And remember most important thing is being consistent..
PHP Coding style - Best practices [duplicate] http://stackoverflow.com/questions/3350560/php-coding-style-best-practices Coding style Best practices duplicate Should I stick with Sun's Java..
Pros and Cons of Interface constants http://stackoverflow.com/questions/5350672/pros-and-cons-of-interface-constants if the same applies to Interface Constants. Given that Coding against an Interface is considered good practise in general..
md5 hashing using password as salt? http://stackoverflow.com/questions/5482437/md5-hashing-using-password-as-salt password like password . For more details check out the Coding Horror post You're probably storing passwords incorrectly ...
Coding standards and line length [closed] http://stackoverflow.com/questions/566082/coding-standards-and-line-length standards and line length closed Every coding standard I've..
CakePHP Shared core for multiple apps http://stackoverflow.com/questions/5706245/cakephp-shared-core-for-multiple-apps all of this is confirmed you will be good as gold Happy Coding UPDATE When the index.php file looks for the cake core it will..
Safe alternatives to PHP Globals (Good Coding Practices) http://stackoverflow.com/questions/7290993/safe-alternatives-to-php-globals-good-coding-practices alternatives to PHP Globals Good Coding Practices For years I have used global var var2 ... varn for..
how to store configurations for php app — xml or ini or db http://stackoverflow.com/questions/798654/how-to-store-configurations-for-php-app-xml-or-ini-or-db the most flexibility if we add fields down the road Coding convenience If I use a db I'll have to use a separate one from..
|