OUT_OBJECT
OUT_OBJECT
Helper class the internals of php-imap-client
preparingProperties(array $arrayCurrentPropertiesAndValues, array $arrayAllowedProperties, string $outType = self::OUT_OBJECT) : object|array
Preparing properties
Return object like this
$obj->to => 'to',
$obj->subject => 'subject',
$obj->message => null
# it is if incoming array not have 'message', like this ['subject'=>'val', 'to'=>'val']
| array | $arrayCurrentPropertiesAndValues | available properties like only ['subject'=>'val', 'message'=>'val'] |
| array | $arrayAllowedProperties | all need properties [... 'to', 'subject', 'message' ...] |
| string | $outType | if Helper::OUT_OBJECT return object, if Helper::OUT_ARRAY return array. |