Skip to content

Instantly share code, notes, and snippets.

View dutymess's full-sized avatar
😡
Hates the Racist Github

Taha Kamkar dutymess

😡
Hates the Racist Github
View GitHub Profile
@dutymess
dutymess / zeshter.php
Last active July 12, 2019 20:04 — forked from meysampg/zeshter.php
Zeshter function remove all comments and docblocks from a given php file or a folder of php files.
#!/usr/bin/env php
<?php
/**
* Zeshter function remove all comments and docblocks from a given
* php file or a folder of php files. Yep, it just mirine into file.
*
* @param string|null $path path of a php file or a folder contains php files
*/
function zeshter(?string $path, bool $debugMode = false)
{