August 2016
Intermediate to advanced
610 pages
11h 55m
English
The most difficult aspect is deciding how to break up programming logic into functions. The mechanics of developing a function in PHP, on the other hand, are quite easy. Just use the function keyword, give it a name, and follow it with parentheses.
function someName ($parameter)
{
$result = 'INIT';
// one or more statements which do something
// to affect $result
$result .= ' and also ' . $parameter;
return $result;
}NULL:function someOtherName ($requiredParam, $optionalParam = NULL) { $result = 0; $result ...Read now
Unlock full access