PHP-Fusion Development

jsminify()

Minify JS code.

Versions: 9

jsminify( string $code ) : string

Parameters

$code (string) (Required) Unminified code.

Return Values

(string) Minified code.

Examples

echo jsminify('
function myFunction(p1, p2) {
return p1 * p2; // The function returns the product of p1 and p2
}
');
// function myFunction(p1,p2){return p1*p2}