Skip to content

set_val_multiple ​

php
bool set_val_multiple(array $cechy)

Sets database properties associated with the current email address. The argument to set_val_multiple() is an array whose keys are recipient property names and whose values are the values to save.

Warning

Requires an email address context.

Returns true if the properties are updated, or false if the specified properties are not defined.

Example:

php
$array = array();
$array['zwrot'] = "Ms Kornelia";
$array['prop1'] = "value";
 
$set = set_val_multiple($array);
if ($set == true) {
    print("The properties have been set");
} elseif ($set == false) {
    print('Something went wrong');
}

Result:

The properties have been set