Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 18400

PHP is a widely-used, general-purpose scripting language that is especially suited for web development.

5 votes
2 answers
283 views

Spreading out model across multiple classes a good idea?

Background My project performs software application management; it covers in-app purchasing, product provisioning, account management, etc. I've recently been tasked to add a cost reporting component …
Jack's user avatar
  • 481
5 votes
Accepted

Improving my PHP autoloader

What you've written is more or less the standard implementation of spl_autoload(). This is an equivalent approach: $paths = array( get_include_path(), ROOT . DS . 'library' . DS . 'intranet …
Jack's user avatar
  • 481
10 votes
Accepted

PHP ideal way to check function returns true

Actually, both methods assign the value first before comparing its value. Therefore, in terms of efficiency, there's no difference. For code readability, you could write extra parentheses around the …
Jack's user avatar
  • 481
2 votes

Constant time string comparision in PHP to prevent timing attacks

Starting from the top: function time_strcmp($str1, $str2) It's important to distinguish between the known and given string; the length of a given string is public, but the length of the known strin …
Jack's user avatar
  • 481