Quantcast
Channel: Gary's Code » PHP: Putting an end to a bad practice
Browsing latest articles
Browse All 4 View Live

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 Article


PHP 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 Article

Image may be NSFW.
Clik here to view.

Phing 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 Article

Image may be NSFW.
Clik here to view.

Why @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
Browsing latest articles
Browse All 4 View Live