Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

debug_stringify()

Description

Stringify variables for use in the debug log. This is used more as fallback to json_encode() failing to maintain quick
readability of the logs.

Parameters

ColumnTypeDefaultDescription
$value mixed Any value that needs stringified

Return

string

Location

include/debug_functions.php lines 128 to 136

Definition

 
function debug_stringify($value)
    {
    if(
is_bool($value))
        {
        return (
$value 'true' 'false');
        }

    return 
trim(preg_replace('/\s+/m'' 'print_r($valuetrue)));
    }

This article was last updated 15th June 2021 14:35 Europe/London time based on the source file dated 10th May 2021 17:30 Europe/London time.