I recently have been working on a weather recording project and as part of this endeavour wanted to check that all of the variables I have posted to my API were set, it can be rather a lot of work to have to specify each if (!isset($_GET)) parameter so I decided to use a function that can take any number of arguments using a ‘variadic’ function in PHP. Now, when I want to use a new api ‘command’, I can simply do the following, This way, so long as we have specified the command and the variables required we can… Continue reading Check all API variables are included in a REST API for PHP.
Businesses work on a complex demand and supply based method of producing products and services. Supply is the quantity of a good or service that a producer is offering to supply into the market Demand is the quantity that the customers are willing to buy at a given price over a given period of time External factors, such as income or environmental or ethical change may mean that a product is no longer viable, smoking for example is no longer as profitable as it was as people no longer smoke as much as they used to. Influences may be out… Continue reading Influences for Supply and Demand