Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

محسن مجدم mohsenmojadam2019

🏠
Working from home
  • iran tehran
View GitHub Profile
View Arabic character to Persian (Farsi) - PHP
<?php
public static function arabicToPersian($string)
{
$characters = [
'ك' => 'ک',
'دِ' => 'د',
'بِ' => 'ب',
'زِ' => 'ز',
'ذِ' => 'ذ',
'شِ' => 'ش',