I'm currently experiencing a problem with a php function. I have declared a function:
function edit_content($array, $id = NULL){
//code
}
Where $array
is an array passed to the function and $id
is an optional integer value.
When I call the function for example like this:
edit_content($content_array, 2);
the value 2
doesn't get passed.
Why wouldn't the value not get passed? Does it have something to do with the array being passed?