Collections functions
General functions
Render 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 511 to 514

Definition

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

This article was last updated 20th May 2022 09:35 Europe/London time based on the source file dated 27th April 2022 12:20 Europe/London time.