API15

JDatabaseMySQL/hasUTF: Difference between revisions

From Joomla! Documentation

m removing red link to edit, no existant pages
m preparing for archive only
 
Line 35: Line 35:


===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 00:27, 25 March 2017

Description

Determines UTF support

[<! removed edit link to red link >]

<! 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

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

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

Code Examples