Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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 105 to 113

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 26th April 2024 07:05 Europe/London time based on the source file dated 20th February 2024 17:10 Europe/London time.