Skip to content

Instantly share code, notes, and snippets.

View shahalom's full-sized avatar

Shah Alom shahalom

View GitHub Profile
@ihumanable
ihumanable / Excel.php
Last active February 6, 2024 06:24
Simple Excel Writer in PHP
<?php
/**
* Simple excel writer class with no external dependencies, drop it in and have fun
* @author Matt Nowack
* @link https://gist.github.com/ihumanable/929039/edit
* @license Unlicensed
* @version 1.0
*/
class Excel {
@tareq1988
tareq1988 / bn-to-en.php
Created January 30, 2015 12:16
Bangla to Phonetic English Conversion
<?php
/**
* Tokenize Unicode strings
*
* @param string $str
* @link http://php.net/str_split
*
* @return array
*/
function str_split_unicode($str) {
@iamMonzurul
iamMonzurul / font-awesome-icons-array-4-3-0.php
Last active August 29, 2015 14:16
Font Awesome Icons Array which could be used in wordpress theme or plugin options
<?php
/**
* Font Awesome Icons Array (4.3.0)
* @author Monzurul Haque
* @author_uri https://github.com/farukham
**/
$icons_arr = array(
__("None", "fifothemes") => "none",
__("Adjust", "fifothemes") => "fa-adjust",
@mahedi2014
mahedi2014 / number_convert.php
Created June 11, 2016 07:17
Convert bangla number to english and word
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body>
<?php
$unicodeNumber = $_GET['num'];
print_r( $unicodeNumber);
function convertToEnglishNumber($unicodeNumber){
@hasinhayder
hasinhayder / change-digitis-unicode.php
Last active August 3, 2022 16:42
change digits from english to unicode locale
<?php
function changeDigitsEtoB( $digits ) {
$bangla = numfmt_format(numfmt_create( 'bn_BD', NumberFormatter::TYPE_DEFAULT ),$digits); //Bangla locale
return $bangla;
}
echo changeDigitsEtoB(1234); //output ১২৩৪