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 533 to 536

Definition

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

This article was last updated 5th October 2022 04:05 Europe/London time based on the source file dated 28th June 2022 15:27 Europe/London time.