Skip to content

Instantly share code, notes, and snippets.

View AmirFayaz's full-sized avatar
🤓
happy

AmirFayaz AmirFayaz

🤓
happy
View GitHub Profile
@jcavat
jcavat / Dockerfile
Last active June 18, 2024 13:20
docker-compose with php/mysql/phpmyadmin/apache
FROM php:7.1.2-apache
RUN docker-php-ext-install mysqli
@amirasaran
amirasaran / Arabic character to Persian (Farsi) - PHP
Last active May 26, 2024 01:35
convert Arabic character to Persian (Farsi) - PHP
<?php
public static function arabicToPersian($string)
{
$characters = [
'ك' => 'ک',
'دِ' => 'د',
'بِ' => 'ب',
'زِ' => 'ز',
'ذِ' => 'ذ',
'شِ' => 'ش',