radarrplexorganizrnginxsonarrdashboardhtpcserverhomepagesabnzbdheimdallembycouchpotatonzbgetbookmarkapplication-dashboardmuximuxlandingpagestartpagelanding
		
		
		
		
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							142 lines
						
					
					
						
							3.0 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							142 lines
						
					
					
						
							3.0 KiB
						
					
					
				| Array definitions | |
| ----- | |
| <?php | |
| 
 | |
| array(); | |
| array('a'); | |
| array('a', ); | |
| array('a', 'b'); | |
| array('a', &$b, 'c' => 'd', 'e' => &$f); | |
| 
 | |
| // short array syntax | |
| []; | |
| [1, 2, 3]; | |
| ['a' => 'b']; | |
| ----- | |
| array( | |
|     0: Expr_Array( | |
|         items: array( | |
|         ) | |
|     ) | |
|     1: Expr_Array( | |
|         items: array( | |
|             0: Expr_ArrayItem( | |
|                 key: null | |
|                 value: Scalar_String( | |
|                     value: a | |
|                 ) | |
|                 byRef: false | |
|             ) | |
|         ) | |
|     ) | |
|     2: Expr_Array( | |
|         items: array( | |
|             0: Expr_ArrayItem( | |
|                 key: null | |
|                 value: Scalar_String( | |
|                     value: a | |
|                 ) | |
|                 byRef: false | |
|             ) | |
|         ) | |
|     ) | |
|     3: Expr_Array( | |
|         items: array( | |
|             0: Expr_ArrayItem( | |
|                 key: null | |
|                 value: Scalar_String( | |
|                     value: a | |
|                 ) | |
|                 byRef: false | |
|             ) | |
|             1: Expr_ArrayItem( | |
|                 key: null | |
|                 value: Scalar_String( | |
|                     value: b | |
|                 ) | |
|                 byRef: false | |
|             ) | |
|         ) | |
|     ) | |
|     4: Expr_Array( | |
|         items: array( | |
|             0: Expr_ArrayItem( | |
|                 key: null | |
|                 value: Scalar_String( | |
|                     value: a | |
|                 ) | |
|                 byRef: false | |
|             ) | |
|             1: Expr_ArrayItem( | |
|                 key: null | |
|                 value: Expr_Variable( | |
|                     name: b | |
|                 ) | |
|                 byRef: true | |
|             ) | |
|             2: Expr_ArrayItem( | |
|                 key: Scalar_String( | |
|                     value: c | |
|                 ) | |
|                 value: Scalar_String( | |
|                     value: d | |
|                 ) | |
|                 byRef: false | |
|             ) | |
|             3: Expr_ArrayItem( | |
|                 key: Scalar_String( | |
|                     value: e | |
|                 ) | |
|                 value: Expr_Variable( | |
|                     name: f | |
|                 ) | |
|                 byRef: true | |
|             ) | |
|         ) | |
|     ) | |
|     5: Expr_Array( | |
|         items: array( | |
|         ) | |
|         comments: array( | |
|             0: // short array syntax | |
|         ) | |
|     ) | |
|     6: Expr_Array( | |
|         items: array( | |
|             0: Expr_ArrayItem( | |
|                 key: null | |
|                 value: Scalar_LNumber( | |
|                     value: 1 | |
|                 ) | |
|                 byRef: false | |
|             ) | |
|             1: Expr_ArrayItem( | |
|                 key: null | |
|                 value: Scalar_LNumber( | |
|                     value: 2 | |
|                 ) | |
|                 byRef: false | |
|             ) | |
|             2: Expr_ArrayItem( | |
|                 key: null | |
|                 value: Scalar_LNumber( | |
|                     value: 3 | |
|                 ) | |
|                 byRef: false | |
|             ) | |
|         ) | |
|     ) | |
|     7: Expr_Array( | |
|         items: array( | |
|             0: Expr_ArrayItem( | |
|                 key: Scalar_String( | |
|                     value: a | |
|                 ) | |
|                 value: Scalar_String( | |
|                     value: b | |
|                 ) | |
|                 byRef: false | |
|             ) | |
|         ) | |
|     ) | |
| ) |