Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video 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 572 to 575

Definition

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

This article was last updated 24th November 2020 07:05 Europe/London time based on the source file dated 23rd November 2020 10:40 Europe/London time.