<?php
$form_validation_rules = array(
array('field' => 'email', 'label' => 'E-Mail-Adresse', 'rules' => 'trim|is_unique[bdb_users.email]|valid_email|required|xss_clean'),
array('field' => 'first_name', 'label' => 'Vorname', 'rules' => 'trim|required|xss_clean'),
array('field' => 'last_name', 'label' => 'Nachname', 'rules' => 'trim|required|xss_clean'),
array('field' => 'tel', 'label' => 'Telefon', 'rules' => 'trim|required|xss_clean'),
array('field' => 'address', 'label' => 'Adresse', 'rules' => 'trim|required|xss_clean'),
array('field' => 'company', 'label' => 'Unternehmen', 'rules' => 'trim|required|xss_clean'),
array('field' => 'password', 'label' => 'Passwort', 'rules' => 'trim|required|xss_clean'),
array('field' => 'position', 'label' => 'Position', 'rules' => 'trim|xss_clean'),
array('field' => 'department', 'label' => 'Abteilung', 'rules' => 'trim|xss_clean'),
array('field' => 'credits', 'label' => 'Credits', 'rules' => 'trim|required|xss_clean|integer'),
);
$x = array_map(function($element){return $element['field'];}, $form_validation_rules);
var_dump($x);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/sZVfi
function name: (null)
number of ops: 11
compiled vars: !0 = $form_validation_rules, !1 = $x
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
3 0 E > ASSIGN !0, <array>
16 1 INIT_FCALL 'array_map'
2 DECLARE_LAMBDA_FUNCTION '%00%7Bclosure%7D%2Fin%2FsZVfi%3A16%240'
3 SEND_VAL ~3
4 SEND_VAR !0
5 DO_ICALL $4
6 ASSIGN !1, $4
18 7 INIT_FCALL 'var_dump'
8 SEND_VAR !1
9 DO_ICALL
10 > RETURN 1
Function %00%7Bclosure%7D%2Fin%2FsZVfi%3A16%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/sZVfi
function name: {closure}
number of ops: 4
compiled vars: !0 = $element
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
16 0 E > RECV !0
1 FETCH_DIM_R ~1 !0, 'field'
2 > RETURN ~1
3* > RETURN null
End of function %00%7Bclosure%7D%2Fin%2FsZVfi%3A16%240
Generated using Vulcan Logic Dumper, using php 8.0.0
preferences:
152.4 ms | 1395 KiB | 17 Q