Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

safe_export()

Description

Utility function to escape and replace any empty strings with NULLS for exported SQL scripts

Parameters

ColumnTypeDefaultDescription
$value string - value to check

Return

string

Location

include/migration_functions.php lines 569 to 572

Definition

 
function safe_export($value)
    {
    return 
trim($value)=="" "NULL" "'" escape_check($value) . "'";
    }

This article was last updated 15th July 2020 04:05 Europe/London time based on the source file dated 24th June 2020 15:23 Europe/London time.