method removeComments documentation in bbn\Str

Removes the comments.

Example

var_dump(\bbn\Str::removeComments("")); // (string) "" var_dump(\bbn\Str::removeComments("// this is a comment")); // (string) "" var_dump(\bbn\Str::removeComments("/** this is a comment *\/")); // (string) "" function(string $st) { $pattern = '/|(?:(?:\/\*(?:[^*]|(?:\*+[^*\/]))*\*+\/)|(?:(?

Removes the comments. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.