File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1818  <title >Passing</title >
1919
2020  <para >
21-    A PHP function is passed by its name as a <type >string</type >. Any built-in
22-    or user-defined function can be used, except language constructs such as:
23-    <function >array</function >, <function >echo</function >,
21+    A PHP function is passed by either its name as a <type >string</type > or by
22+    a <link  linkend =" functions.first_class_callable_syntax" link >.
23+    Any built-in or user-defined function can be used, except language constructs
24+    such as: <function >array</function >, <function >echo</function >,
2425   <function >empty</function >, <function >eval</function >,
2526   <function >exit</function >, <function >isset</function >,
2627   <function >list</function >, <function >print</function > or
@@ -125,7 +126,7 @@ call_user_func($c, 'PHP!');
125126  <para >
126127   <example >
127128    <title >
128-      Callback example using a Closure
129+      Callback example using a < classname > Closure</ classname > 
129130    </title >
130131   <programlisting  role =" php" 
131132<![CDATA[ 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments