This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function bangla2englishNumber ($number){ | |
$search_array= array("১", "২", "৩", "৪", "৫", "৬", "৭", "৮", "৯", "০"); | |
$replace_array= array("1", "2", "3", "4", "5", "6", "7", "8", "9", "0"); | |
$en_number = str_replace($search_array, $replace_array, $number); | |
return $en_number; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function uploadImage($fileInputField, $uploadFolder, $fileName = '', $create_thumb = false, $photoIndex = false) { | |
$uploadedFileName = ''; | |
if (Input::file($fileInputField)) { | |
$fileName = preg_replace('/\s*/', '', $fileName); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Prepare the Font Files: | |
Before proceeding, make sure you have all the font files (in .ttf or .otf format) you want to install. Place all these font files in a single directory, for example, create a folder named "MyFonts" and place the font files inside it. | |
Open Terminal: | |
Press `Ctrl + Alt + T` to open a terminal window. | |
Navigate to the Font Directory: | |
Use the cd command to navigate to the directory where you placed all the font files. For example, if you placed them in the "MyFonts" folder under your home directory, use the following command: | |
`cd ~/MyFonts` |