title: Convert numeral date(03-11-1991) into arabic no(۱۹۹۱/۱۱/۰۳) php
body: <p>I just want to convert the date which is in this format dd-mm-yyyy(03-11-1991) into arabic no like this(۱۹۹۱/۱۱/۰۳) in php.</p>
  
  <p><strong>Answer</strong>
  I Made This Logic And It Works Perfect</p>
  
  <pre><code>   $dateofbirth_numerial="03-05-2001";
                               $numerial_no = array("0","1","2","3","4","5","6","7","8","9","-");
                               $arabic_no = array("۰","۱","۲","۳","۴","۵","۶","۷","۸","۹","/");
                               $dateofbirth_arabic = str_replace($numerial_no , $arabic_no , $dateofbirth_numerial);
                               $result = explode('/',$dateofbirth_arabic);
                               echo $result[2]."/".$result[1]."/".$result[0]; /* yyyy/mm/dd */
  </code></pre>