Troublesome callbackfunction
Posted: Wed Jul 21, 2004 11:29 am
Hi
Can someone tell me why $serie is unset in the callback-function hentSerie?
Can someone tell me why $serie is unset in the callback-function hentSerie?
Code: Select all
<?php
/* Other function */
$serie = "A";
$Aserie = array_filter($identifikatorer, "hentSerie");
/* Callback function */
function hentSerie($element){
global $serie;
return ($serie == $element{0});
}
?>