Skip to content

Instantly share code, notes, and snippets.

View mohsenmojadam2019's full-sized avatar
🏠
Working from home

Mohsen Mojaddam mohsenmojadam2019

🏠
Working from home
  • shakeway agency
  • iran tehran
View GitHub Profile
@mohsenmojadam2019
mohsenmojadam2019 / Arabic character to Persian (Farsi) - PHP
Created September 19, 2021 17:20 — forked from amirasaran/Arabic character to Persian (Farsi) - PHP
convert Arabic character to Persian (Farsi) - PHP
<?php
public static function arabicToPersian($string)
{
$characters = [
'ك' => 'ک',
'دِ' => 'د',
'بِ' => 'ب',
'زِ' => 'ز',
'ذِ' => 'ذ',
'شِ' => 'ش',
@buglessir
buglessir / react-query-object.js
Created February 28, 2022 07:32
An example for the Query Object in react-query
// (1) ----------> Query Object for the useQuery();
import { fetchListFunction } from './services';
export const FetchListObj = (key, config) => ({
queryKey: ['FetchList', key],
queryFn: () => fetchListFunction,
placeholderData: {
list: []
},