determine if a property value is a blank string

foreach ($profiles as $profile) {
    $azure_picture = Azure::init()->set_blob_sas_url
    ($profile->get_employee_id());
    $profile->load([
        'azure_picture' => $azure_picture,
        'azure_picture_expiration' =>
            $profile->set_azure_picture_expiration
            ($azure_picture != '' ? strtotime('+7 days') : ''),
    ]);
    $profile->save();
}

Is this what you mean?

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top