Quadratic Solver Function for PHP
A PHP function to solve quadratic equations. /** * Quadratic Solver Function for PHP * * Useage: for 3x^2 + 4x + 5 = 0, use quadratic(3, 4, 5, 'root1') and quadratic(3, 4, 5, 'root2'), * or simply just...
View ArticlePHP Class for Greatest Common Factor
The following class can be used to find the greatest common factor for two or more numbers by using Euclid’s algorithm. It was created from original code at...
View ArticlePhing Build File General default build file for automating a PHP project
Jenkins, powered by my Phing build file On my computer I have Jenkins installed for viewing analysis of code, and as I code with PHP and not Java, I use Phing instead of Ant as the build system. I run...
View ArticleWhy @return void is wrong in PHP documentation Putting an end to a bad practice
When documenting PHP, there are two schools of thought regarding the use of @return tags in DocBlocks when the function or method being documented doesn’t actually have a return keyword: Don’t include...
View Article