@ 2015-03-19T13:21:23Z <?php
$arr = array(
array('iso'=>'A3+', 'height'=>329, 'width'=>483, 'descrip'=>'A3+ (329 x 483 mm)'),
array('iso'=>'A3_EXTRA', 'height'=>322, 'width'=>445, 'descrip'=>'A3 EXTRA (322 x 445 mm)'),
array('iso'=>'A3_SUPER', 'height'=>305, 'width'=>508, 'descrip'=>'A3 SUPER (305 x 508 mm)'),
array('iso'=>'SUPER_A3', 'height'=>305, 'width'=>487, 'descrip'=>'SUPER A3 (305 x 487 mm)'),
array('iso'=>'A4_EXTRA', 'height'=>235, 'width'=>322, 'descrip'=>'A4 EXTRA (235 x 322 mm)'),
array('iso'=>'A4_SUPER', 'height'=>229, 'width'=>322, 'descrip'=>'A4 SUPER (229 x 322 mm)'),
array('iso'=>'SUPER_A4', 'height'=>227, 'width'=>356, 'descrip'=>'SUPER A4 (227 x 356 mm)'),
array('iso'=>'A4_LONG', 'height'=>210, 'width'=>348, 'descrip'=>'A4 LONG (210 x 348 mm)'),
array('iso'=>'F4', 'height'=>210, 'width'=>330, 'descrip'=>'F4 (210 x 330 mm)'),
array('iso'=>'SO_B5_EXTRA', 'height'=>202, 'width'=>276, 'descrip'=>'SO B5 EXTRA (202 x 276 mm)'),
array('iso'=>'A5_EXTRA', 'height'=>173, 'width'=>235, 'descrip'=>'A5 EXTRA (173 x 235 mm)'),
array('iso'=>'ANSI_E', 'height'=>863.6, 'width'=>1117.6, 'descrip'=>'ANSI E (863.6 x 1117.6 mm)'),
array('iso'=>'ANSI_D', 'height'=>558.8, 'width'=>863.6, 'descrip'=>'ANSI D (558.8 x 863.6 mm)'),
array('iso'=>'ANSI_C', 'height'=>431.8, 'width'=>558.8, 'descrip'=>'ANSI C (431.8 x 558.8 mm)'),
array('iso'=>'ANSI_B', 'height'=>279.4, 'width'=>431.8, 'descrip'=>'ANSI B (279.4 x 431.8 mm)'),
array('iso'=>'ANSI_A', 'height'=>215.9, 'width'=>279.4, 'descrip'=>'ANSI A (215.9 x 279.4 mm)'),
);
$filt = array_filter($arr, function($e) { startsWith($e['iso'],"A4"); });
var_dump($filt);
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 7.0.0 - 7.0.20 , 7.1.0 - 7.1.33 , 7.2.0 - 7.2.33 , 7.3.0 - 7.3.33 , 7.4.0 - 7.4.33 , 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.7 Fatal error: Uncaught Error: Call to undefined function startsWith() in /in/DjYjS:21
Stack trace:
#0 [internal function]: {closure}(Array)
#1 /in/DjYjS(21): array_filter(Array, Object(Closure))
#2 {main}
thrown in /in/DjYjS on line 21
Process exited with code 255 . Output for 5.3.0 - 5.3.29 , 5.4.0 - 5.4.45 , 5.5.24 - 5.5.35 , 5.6.7 - 5.6.28 Fatal error: Call to undefined function startsWith() in /in/DjYjS on line 21
Process exited with code 255 . Output for 4.4.2 - 4.4.9 , 5.1.0 - 5.1.6 , 5.2.0 - 5.2.17 Parse error: syntax error, unexpected T_FUNCTION in /in/DjYjS on line 21
Process exited with code 255 . Output for 4.3.0 - 4.3.1 , 4.3.5 - 4.3.11 , 4.4.0 - 4.4.1 , 5.0.0 - 5.0.5 Parse error: parse error, unexpected T_FUNCTION in /in/DjYjS on line 21
Process exited with code 255 . Output for 4.3.2 - 4.3.4 Parse error: parse error in /in/DjYjS on line 21
Process exited with code 255 . preferences:dark mode live preview
210.72 ms | 401 KiB | 358 Q