\SM3\typesASCII

Summary

Methods
Properties
Constants
__construct()
__toString()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
trans2ascii()
$string
N/A

Properties

$string

$string : 

Type

Methods

__construct()

__construct(  $string) 

Parameters

$string

__toString()

__toString() 

offsetExists()

offsetExists(mixed  $offset) : boolean

Whether a offset exists

Parameters

mixed $offset

An offset to check for.

Returns

boolean —

true on success or false on failure.

The return value will be casted to boolean if non-boolean was returned.

offsetGet()

offsetGet(mixed  $offset) : mixed

Offset to retrieve

Parameters

mixed $offset

The offset to retrieve.

Returns

mixed —

Can return all value types.

offsetSet()

offsetSet(mixed  $offset, mixed  $value) : \SM3\types\ASCII

Offset to set

Parameters

mixed $offset

The offset to assign the value to.

mixed $value

The value to set.

Returns

\SM3\types\ASCII

offsetUnset()

offsetUnset(mixed  $offset) : \SM3\types\ASCII

Offset to unset

Parameters

mixed $offset

The offset to unset.

Returns

\SM3\types\ASCII

trans2ascii()

trans2ascii(  $string) : string

字符串转化为ASCII码(中文不适用)

Parameters

$string

Returns

string