<?php
$config['base_validation_rules']['account_email'] = [
'field' => 'account_email',
'label' => 'Account Email Address',
'rules' => [
'trim',
'valid_email',
'check_burner_email',
'check_ban',
'check_ip_address'
]];
print_r ( array_merge( ['rules'=>['required'], 'label'=>'test'],$config['base_validation_rules']['account_email']));
print_r ( array_merge( $config['base_validation_rules']['account_email'],['rules'=>['required'], 'label'=>'test']));
print_r ( array_replace_recursive( $config['base_validation_rules']['account_email'],['rules'=>['required'], 'label'=>'test']));
print_r ( array_replace_recursive( ['rules'=>['required'], 'label'=>'test'], $config['base_validation_rules']['account_email']));
print_r ( array_merge_recursive(['rules'=>['required'], 'label'=>'test'], $config['base_validation_rules']['account_email']));
print_r ( array_merge_recursive([$config['base_validation_rules']['account_email'], 'rules'=>['required'], 'label'=>'test']));
- Output for 7.0.0 - 7.0.31, 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.4, 8.3.6
- Array
(
[rules] => Array
(
[0] => trim
[1] => valid_email
[2] => check_burner_email
[3] => check_ban
[4] => check_ip_address
)
[label] => Account Email Address
[field] => account_email
)
Array
(
[field] => account_email
[label] => test
[rules] => Array
(
[0] => required
)
)
Array
(
[field] => account_email
[label] => test
[rules] => Array
(
[0] => required
[1] => valid_email
[2] => check_burner_email
[3] => check_ban
[4] => check_ip_address
)
)
Array
(
[rules] => Array
(
[0] => trim
[1] => valid_email
[2] => check_burner_email
[3] => check_ban
[4] => check_ip_address
)
[label] => Account Email Address
[field] => account_email
)
Array
(
[rules] => Array
(
[0] => required
[1] => trim
[2] => valid_email
[3] => check_burner_email
[4] => check_ban
[5] => check_ip_address
)
[label] => Array
(
[0] => test
[1] => Account Email Address
)
[field] => account_email
)
Array
(
[0] => Array
(
[field] => account_email
[label] => Account Email Address
[rules] => Array
(
[0] => trim
[1] => valid_email
[2] => check_burner_email
[3] => check_ban
[4] => check_ip_address
)
)
[rules] => Array
(
[0] => required
)
[label] => test
)
- Output for 8.3.5
- Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Array
(
[rules] => Array
(
[0] => trim
[1] => valid_email
[2] => check_burner_email
[3] => check_ban
[4] => check_ip_address
)
[label] => Account Email Address
[field] => account_email
)
Array
(
[field] => account_email
[label] => test
[rules] => Array
(
[0] => required
)
)
Array
(
[field] => account_email
[label] => test
[rules] => Array
(
[0] => required
[1] => valid_email
[2] => check_burner_email
[3] => check_ban
[4] => check_ip_address
)
)
Array
(
[rules] => Array
(
[0] => trim
[1] => valid_email
[2] => check_burner_email
[3] => check_ban
[4] => check_ip_address
)
[label] => Account Email Address
[field] => account_email
)
Array
(
[rules] => Array
(
[0] => required
[1] => trim
[2] => valid_email
[3] => check_burner_email
[4] => check_ban
[5] => check_ip_address
)
[label] => Array
(
[0] => test
[1] => Account Email Address
)
[field] => account_email
)
Array
(
[0] => Array
(
[field] => account_email
[label] => Account Email Address
[rules] => Array
(
[0] => trim
[1] => valid_email
[2] => check_burner_email
[3] => check_ban
[4] => check_ip_address
)
)
[rules] => Array
(
[0] => required
)
[label] => test
)
preferences:
243.31 ms | 409 KiB | 234 Q