PHP » PYTHON |
login |
register |
about
|
PYTHON is_unicode
is this article helpful?
|
Python replacement for PHP's is_unicode
[
edit
| history
]
# Python 2.x isinstance(var, unicode) # Python 3.x isinstance(var, str) is_unicode(PHP 6 >= 6.0.0) is_unicode — Finds whether a variable is a unicode string Parameters
Return ValuesReturns TRUE if var is a unicode string, FALSE otherwise. Examples
Example #1 is_unicode() example
<?php The above example will output: bool(true) bool(false)
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|