PHP-Fusion Development

formatcode()

Add correct amount of spaces and tabs inside code.

Versions: 9

formatcode( string $text ) : string

Parameters

$text (string) (Required) The text you want to format.

Return Values

(string) Formatted code.

Examples

$text = ' Indent goes here.';
echo formatcode($text);
//    Indent goes here.