Skip to content

Instantly share code, notes, and snippets.

@Akkiesoft
Last active December 15, 2015 22:39
Show Gist options
  • Save Akkiesoft/5334792 to your computer and use it in GitHub Desktop.
Save Akkiesoft/5334792 to your computer and use it in GitHub Desktop.
突然の死的なやつ
<?php
mb_internal_encoding('UTF-8');
function totsuzen_no_shi($str, $retstr = "\n") {
$len = mb_strlen($str, 'UTF-8');
$line1 = '_人';
$line2 = '> '.$str.' <';
$line3 = ' ̄';
for ($i = 0; $i < $len; $i++) {
$line1 .= '人';
$line3 .= '^Y';
}
$line1 .= '_';
$line3 .= ' ̄';
return $line1 . $retstr . $line2 . $retstr . $line3;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment