Collections functions
General 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 30th November 2023 18:05 Europe/London time based on the source file dated 15th August 2023 17:20 Europe/London time.