downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

isset> <is_string
Last updated: Fri, 30 Oct 2009

view this page in

is_unicode

(PHP 6 >= 6.0.0)

is_unicodePrüft ob eine Variable ein Unicode-String ist

Beschreibung

bool is_unicode ( mixed $var )

Prüft ob die übergebene Variable ein unicode-String ist.

Parameter-Liste

var

Die zu prüfende Variable.

Rückgabewerte

Liefert TRUE wenn var ein unicode-String ist, sonst FALSE

Beispiele

Beispiel #1 is_unicode()-Beispiel

<?php
// Deklariert einen Unicode-String
$unicode 'Dies ist ein Unicode-String';

// Deklariert einen Binärstring
$binary b'Dies ist ein Binärstring';

var_dump(is_unicode($unicode), is_unicode($binary));
?>

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

bool(true)
bool(false)

Siehe auch

  • is_binary() - Prüft ob eine Variable ein nativer Binärstring ist
  • is_buffer() - Prüft, ob eine Variable ein nativer Unicode- oder Binärstring ist
  • is_string() - Prüft, ob Variable vom Typ string ist
  • unicode_encode() - Convert a unicode string in any encoding



add a note add a note User Contributed Notes
is_unicode
There are no user contributed notes for this page.

isset> <is_string
Last updated: Fri, 30 Oct 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites