<?php
$defaults = [
'useremail' => null,
'distributor' => null,
'enduser' => null,
'distname' => null,
'contname' => null,
'testingdate' => null,
'dist_phone' => null,
'end_phone' => null,
'dist_email' => null,
'end_email' => null,
'w_material' => null,
'w_condition' => null,
'w_grade' => null,
'w_add_conditions' => null,
'w_hardness' => null,
'w_workholding' => null,
'machine_brand' => null,
'machine_model' => null,
'machine_type' => null,
'machine_max_rpm' => null,
'machine_horsepower' => null,
'spindle_taper' => null,
'coolant_type' => null,
'cooland_delivery' => null,
'concentration_percent' => null,
'tool_holder_type' => null,
'holder_condition' => null,
'holder_balancing' => null,
'static_runout' => null,
'holder_projection' => null,
'customer_parts_tool' => null,
'customer_linear_inches_tool' => null,
'customer_cu_inches_tool' => null,
'customer_cut_time_tool' => null,
'customer_cycle_time_reduction_pp' => null,
'customer_spindle_load' => null,
'customer_surface_finish_req' => null,
'tool_brand' => null,
'tool_style' => null,
'tool_coating' => null,
'tool_edp' => null,
'lot_shank' => null,
'lot_pkg' => null,
'number_flutes' => null,
'cutting_diameter_1' => null,
'shank_diameter_2' => null,
'length_cut_loc' => null,
'overall_length_oal' => null,
'length_below_shank_lbs' => null,
'tool_coating' => null,
'corner_construction_type' => null,
'corner_construction_size' => null,
'shank_construction' => null,
'surfacefeet' => null,
'revolutionsperminute' => null,
'feed_per_tooth_fpt' => null,
'ipm' => null,
'adoc' => null,
'rdoc' => null,
'metalremoval' => null,
'surface_finish' => null,
'cycle_time_ppart' => null,
'partsp_tool' => null,
'inches_machine_ptool' => null,
'cut_time_ptool' => null,
'brand_toolstyle' => null,
'brand_edp' => null,
'brand_lot_shank' => null,
'brand_lot_pkg' => null,
'brand_flutes_numb' => null,
'brand_cutting_diameter' => null,
'brand_length_of_cut' => null,
'brand_length_below_shank' => null,
'brand_tool_coating' => null,
'brand_corner_construction_type' => null,
'brand_corner_construction_size' => null,
'brand_shank_construction' => null,
'hsurfacefeet' => null,
'hrevolutionsperminute' => null,
'brand_fpt' => null,
'hipm' => null,
'hadoc' => null,
'hrdoc' => null,
'hmetalremoval' => null,
'brand_surface_finish' => null,
'brand_cycle_time_ppart' => null,
'brand_pptool' => null,
'brand_machined_ptool' => null,
'brand_ctime_ptool' => null,
];
$_POST = [
'useremail' => 'foo@bar.com',
'dangerous_fieldname' => 'I am administrator! hahaha!',
];
$values = array_intersect_key($_POST + $defaults, $defaults);
var_dump($values);
- Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28, 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.6
- array(88) {
["useremail"]=>
string(11) "foo@bar.com"
["distributor"]=>
NULL
["enduser"]=>
NULL
["distname"]=>
NULL
["contname"]=>
NULL
["testingdate"]=>
NULL
["dist_phone"]=>
NULL
["end_phone"]=>
NULL
["dist_email"]=>
NULL
["end_email"]=>
NULL
["w_material"]=>
NULL
["w_condition"]=>
NULL
["w_grade"]=>
NULL
["w_add_conditions"]=>
NULL
["w_hardness"]=>
NULL
["w_workholding"]=>
NULL
["machine_brand"]=>
NULL
["machine_model"]=>
NULL
["machine_type"]=>
NULL
["machine_max_rpm"]=>
NULL
["machine_horsepower"]=>
NULL
["spindle_taper"]=>
NULL
["coolant_type"]=>
NULL
["cooland_delivery"]=>
NULL
["concentration_percent"]=>
NULL
["tool_holder_type"]=>
NULL
["holder_condition"]=>
NULL
["holder_balancing"]=>
NULL
["static_runout"]=>
NULL
["holder_projection"]=>
NULL
["customer_parts_tool"]=>
NULL
["customer_linear_inches_tool"]=>
NULL
["customer_cu_inches_tool"]=>
NULL
["customer_cut_time_tool"]=>
NULL
["customer_cycle_time_reduction_pp"]=>
NULL
["customer_spindle_load"]=>
NULL
["customer_surface_finish_req"]=>
NULL
["tool_brand"]=>
NULL
["tool_style"]=>
NULL
["tool_coating"]=>
NULL
["tool_edp"]=>
NULL
["lot_shank"]=>
NULL
["lot_pkg"]=>
NULL
["number_flutes"]=>
NULL
["cutting_diameter_1"]=>
NULL
["shank_diameter_2"]=>
NULL
["length_cut_loc"]=>
NULL
["overall_length_oal"]=>
NULL
["length_below_shank_lbs"]=>
NULL
["corner_construction_type"]=>
NULL
["corner_construction_size"]=>
NULL
["shank_construction"]=>
NULL
["surfacefeet"]=>
NULL
["revolutionsperminute"]=>
NULL
["feed_per_tooth_fpt"]=>
NULL
["ipm"]=>
NULL
["adoc"]=>
NULL
["rdoc"]=>
NULL
["metalremoval"]=>
NULL
["surface_finish"]=>
NULL
["cycle_time_ppart"]=>
NULL
["partsp_tool"]=>
NULL
["inches_machine_ptool"]=>
NULL
["cut_time_ptool"]=>
NULL
["brand_toolstyle"]=>
NULL
["brand_edp"]=>
NULL
["brand_lot_shank"]=>
NULL
["brand_lot_pkg"]=>
NULL
["brand_flutes_numb"]=>
NULL
["brand_cutting_diameter"]=>
NULL
["brand_length_of_cut"]=>
NULL
["brand_length_below_shank"]=>
NULL
["brand_tool_coating"]=>
NULL
["brand_corner_construction_type"]=>
NULL
["brand_corner_construction_size"]=>
NULL
["brand_shank_construction"]=>
NULL
["hsurfacefeet"]=>
NULL
["hrevolutionsperminute"]=>
NULL
["brand_fpt"]=>
NULL
["hipm"]=>
NULL
["hadoc"]=>
NULL
["hrdoc"]=>
NULL
["hmetalremoval"]=>
NULL
["brand_surface_finish"]=>
NULL
["brand_cycle_time_ppart"]=>
NULL
["brand_pptool"]=>
NULL
["brand_machined_ptool"]=>
NULL
["brand_ctime_ptool"]=>
NULL
}
- Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29
- Parse error: syntax error, unexpected '[' in /in/IA0rQ on line 3
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 '[' in /in/IA0rQ on line 3
Process exited with code 255. - Output for 4.3.2 - 4.3.4
- Parse error: parse error in /in/IA0rQ on line 3
Process exited with code 255.
preferences:
260.07 ms | 401 KiB | 342 Q