Skip to content

Instantly share code, notes, and snippets.

View effone's full-sized avatar
👻
Ghost Mode

Debabrata Trivedi effone

👻
Ghost Mode
View GitHub Profile
@effone
effone / func.abb.php
Last active January 4, 2022 13:58
Generate 3-letter abbreviation of given string in PHP
<?php
/**
* Generate 3-letter abbreviation
* @author effone <effone@mybb.com>
*
* @param string $string
* @return string
*/
function abb($string = '')

Keybase proof

I hereby claim:

  • I am effone on github.
  • I am effone (https://keybase.io/effone) on keybase.
  • I have a public key ASBxn4aDnj16UTQiEb5Gq2VK1aRnR5kKHWrQDMb3w3NIMAo

To claim this, I am signing this object:

@effone
effone / pluralexcep.php
Last active October 28, 2021 02:48
Plural Literature Suffix
<?php
// To extend $key => $value pairs further as exception gets identified
return array(
'addendum'=>'addenda',
'analysis'=>'analyses',
'child'=>'children',
'goose'=>'geese',
'locus'=>'loci',
'louse'=>'lice',
'oasis'=>'oases',