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 = [
'ك' => 'ک',
'دِ' => 'د',
'بِ' => 'ب',
'زِ' => 'ز',
'ذِ' => 'ذ',
'شِ' => 'ش',
@buglessir
buglessir / react-query-object.js
Created Feb 28, 2022
An example for the Query Object in react-query
View react-query-object.js
// (1) ----------> Query Object for the useQuery();
import { fetchListFunction } from './services';
export const FetchListObj = (key, config) => ({
queryKey: ['FetchList', key],
queryFn: () => fetchListFunction,
placeholderData: {
list: []
},