Skip to content

Instantly share code, notes, and snippets.

View amirmojiry's full-sized avatar
😶
I don't know

Amirhossein Mojiri Foroushani amirmojiry

😶
I don't know
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Methods Time Table
</title>
<style>
table, td {
@amirmojiry
amirmojiry / reverse.php
Created July 21, 2019 07:53
Reversing and some editing on a messy file
<?php
function convert_non_persian_chars_to_persian ($str) {
//main goal: arabic chars: from ؀ U+0600 (&#1536;) to ۿ U+06FF (&#1791;)
//source: https://unicode-table.com/en
$right_chars = array (
'ا',
'ب',
'پ',
'ت',
'ث',
@amirmojiry
amirmojiry / Convert like-Persian characters to Persian characters
Last active September 29, 2024 11:06
A PHP function for convert like-Persian characters to Persian characters
<?php
function convert_non_persian_chars_to_persian ($str) {
//main goal: arabic chars: from ؀ U+0600 (&#1536;) to ۿ U+06FF (&#1791;)
//source: https://unicode-table.com/en
$right_chars = array (
'ا',
'ب',
'پ',
'ت',
'ث',