This is the best resource on the web. Thanks all for your help.
My question of the moment is on functions. I want to have a function where the first two parameters are required and all others are optional. Do I need to do anything special so that my function will not blowup if it is missing an optional paramter? I'd rather not use empty parameter place holders ('x','15','','') if possible.
See below to clarify. Thanks!!!
doThis('x','15');
function doThis($a,$b,$c,$d) {
// Will this blow up if it does not get values for $c,$d?
}
My question of the moment is on functions. I want to have a function where the first two parameters are required and all others are optional. Do I need to do anything special so that my function will not blowup if it is missing an optional paramter? I'd rather not use empty parameter place holders ('x','15','','') if possible.
See below to clarify. Thanks!!!
doThis('x','15');
function doThis($a,$b,$c,$d) {
// Will this blow up if it does not get values for $c,$d?
}