Skip to content

set_val ​

php
bool set_val(string $cecha, string $wartosc)

Sets a database property associated with the current email address. The arguments to set_val() are the recipient property name and the value to save.

Warning

Requires an email address context.

Returns true if the property is updated successfully, or false if the specified property is not defined.

Example:

php
$imie = "Kasia";
$set = set_val("zwrot", "Ms ".$imie);
if ($set == true) {
print('Saved the text: Ms Kasia in the "zwrot" property');
} elseif ($set == false) {
print('Something went wrong');
}

Result:

Saved the text: Ms Kasia in the "zwrot" property