API16

JDatabaseMySQL/hasUTF: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 31: Line 31:


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=hasUTF
  category=hasUTF
  category=JDatabaseMySQL
  category=JDatabaseMySQL
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*

Latest revision as of 01:27, 25 March 2017

Description

Determines UTF support


<! removed transcluded page call, red link never existed >

Syntax

hasUTF()


Returns

boolean True - UTF is supported

Defined in

libraries/joomla/database/database/mysql.php

Importing

jimport( 'joomla.database.database.mysql' );

Source Body

public function hasUTF()
{
        $verParts = explode('.', $this->getVersion());
        return ($verParts[0] == 5 || ($verParts[0] == 4 && $verParts[1] == 1 && (int)$verParts[2] >= 2));
}


<! removed transcluded page call, red link never existed >

Examples

Code Examples