mirror of
https://github.com/php/php-src.git
synced 2024-12-26 18:29:37 +08:00
17 lines
394 B
PHP
17 lines
394 B
PHP
--TEST--
|
|
mb_list_encodings
|
|
--SKIPIF--
|
|
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
|
|
--FILE--
|
|
<?php
|
|
var_dump(in_array("7bit", mb_list_encodings()));
|
|
var_dump(in_array("8bit", mb_list_encodings()));
|
|
var_dump(in_array("ASCII", mb_list_encodings()));
|
|
var_dump(in_array("non-existent", mb_list_encodings()));
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(true)
|
|
bool(true)
|
|
bool(false)
|