 ae9dd13aa0
			
		
	
	
		ae9dd13aa0
		
	
	
	
	
		
			
			MS Excel skip non numeric values also. PhpSpreadsheet used to fail on string value with: Warning: A non-numeric value encountered. Fixes #618
		
			
				
	
	
		
			75 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			75 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| return [
 | |
|     [
 | |
|         15,
 | |
|         [
 | |
|             [1],
 | |
|             [5],
 | |
|             [10],
 | |
|         ],
 | |
|         '>=5',
 | |
|     ],
 | |
|     [
 | |
|         10,
 | |
|         [
 | |
|             ['text'],
 | |
|             [2],
 | |
|         ],
 | |
|         '=text',
 | |
|         [
 | |
|             [10],
 | |
|             [100],
 | |
|         ],
 | |
|     ],
 | |
|     [
 | |
|         10,
 | |
|         [
 | |
|             ['"text with quotes"'],
 | |
|             [2],
 | |
|         ],
 | |
|         '="text with quotes"',
 | |
|         [
 | |
|             [10],
 | |
|             [100],
 | |
|         ],
 | |
|     ],
 | |
|     [
 | |
|         10,
 | |
|         [
 | |
|             ['"text with quotes"'],
 | |
|             [''],
 | |
|         ],
 | |
|         '>"', // Compare to the single character " (double quote)
 | |
|         [
 | |
|             [10],
 | |
|             [100],
 | |
|         ],
 | |
|     ],
 | |
|     [
 | |
|         100,
 | |
|         [
 | |
|             [''],
 | |
|             ['anything'],
 | |
|         ],
 | |
|         '>"', // Compare to the single character " (double quote)
 | |
|         [
 | |
|             [10],
 | |
|             [100],
 | |
|         ],
 | |
|     ],
 | |
|     [
 | |
|         10,
 | |
|         [
 | |
|             [1],
 | |
|             [2],
 | |
|         ],
 | |
|         '<>', // any content
 | |
|         [
 | |
|             ['non-numeric value'], // ignored in SUM
 | |
|             [10],
 | |
|         ],
 | |
|     ],
 | |
| 
 | |
| ];
 |