Answer the question
In order to leave comments, you need to log in
Anonymous function as array element in php?
Here is the array
$arr = [
'url' => 'news.html',
'data' => function () {
return 123123123;
}
]
$arr['data']
it, it will print out object(Closure)#138 (0) { }
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question