تشخیص فارسی یا انگلیسی بودن یک رشته در C#


Fatal error: Uncaught Error: Call to a member function id() on array in C:\inetpub\vhosts\alirezasaberi.ir\httpdocs\wp-content\plugins\crayon-syntax-highlighter\crayon_formatter.class.php:36 Stack trace: #0 C:\inetpub\vhosts\alirezasaberi.ir\httpdocs\wp-content\plugins\crayon-syntax-highlighter\crayon_formatter.class.php(538): CrayonFormatter::format_code() #1 [internal function]: CrayonFormatter::delim_to_internal() #2 C:\inetpub\vhosts\alirezasaberi.ir\httpdocs\wp-content\plugins\crayon-syntax-highlighter\crayon_formatter.class.php(516): preg_replace_callback() #3 C:\inetpub\vhosts\alirezasaberi.ir\httpdocs\wp-content\plugins\crayon-syntax-highlighter\crayon_highlighter.class.php(166): CrayonFormatter::format_mixed_code() #4 C:\inetpub\vhosts\alirezasaberi.ir\httpdocs\wp-content\plugins\crayon-syntax-highlighter\crayon_highlighter.class.php(186): CrayonHighlighter->process() #5 C:\inetpub\vhosts\alirezasaberi.ir\httpdocs\wp-content\plugins\crayon-syntax-highlighter\crayon_wp.class.php(703): CrayonHighlighter->output() # in C:\inetpub\vhosts\alirezasaberi.ir\httpdocs\wp-content\plugins\crayon-syntax-highlighter\crayon_formatter.class.php on line 36