ApiOpenStudio PHPDoc

ConvertToArrayTrait

Trait ConvertToArrayTrait.

Trait to cast an input value to array.

Table of Contents

fromArrayToArray()  : array<string|int, mixed>
Convert array to array.
fromBooleanToArray()  : array<string|int, mixed>
Convert boolean to array.
fromFileToArray()  : mixed
Convert file to array.
fromFloatToArray()  : array<string|int, mixed>
Convert float to array.
fromHtmlToArray()  : array<string|int, mixed>
Convert HTML to array.
fromImageToArray()  : mixed
Convert image to array.
fromIntegerToArray()  : array<string|int, mixed>
Convert integer to array.
fromJsonToArray()  : array<string|int, mixed>
Convert JSON string to array.
fromTextToArray()  : array<string|int, mixed>
Convert text to array.
fromUndefinedToArray()  : null
Convert undefined to array.
fromXmlToArray()  : array<string|int, mixed>
Convert XML string to array.

Methods

fromArrayToArray()

Convert array to array.

public fromArrayToArray(array<string|int, mixed> $array) : array<string|int, mixed>
Parameters
$array : array<string|int, mixed>
Return values
array<string|int, mixed>

fromBooleanToArray()

Convert boolean to array.

public fromBooleanToArray(bool $boolean) : array<string|int, mixed>
Parameters
$boolean : bool
Return values
array<string|int, mixed>

fromFileToArray()

Convert file to array.

public fromFileToArray( $file) : mixed
Parameters
$file :
Tags
throws
ApiException
Return values
mixed

fromFloatToArray()

Convert float to array.

public fromFloatToArray(float $float) : array<string|int, mixed>
Parameters
$float : float
Return values
array<string|int, mixed>

fromHtmlToArray()

Convert HTML to array.

public fromHtmlToArray(string $html) : array<string|int, mixed>
Parameters
$html : string
Return values
array<string|int, mixed>

fromImageToArray()

Convert image to array.

public fromImageToArray( $image) : mixed
Parameters
$image :
Tags
throws
ApiException
Return values
mixed

fromIntegerToArray()

Convert integer to array.

public fromIntegerToArray(int $integer) : array<string|int, mixed>
Parameters
$integer : int
Return values
array<string|int, mixed>

fromJsonToArray()

Convert JSON string to array.

public fromJsonToArray( $json) : array<string|int, mixed>
Parameters
$json :
Return values
array<string|int, mixed>

fromTextToArray()

Convert text to array.

public fromTextToArray(string $text) : array<string|int, mixed>
Parameters
$text : string
Return values
array<string|int, mixed>

fromUndefinedToArray()

Convert undefined to array.

public fromUndefinedToArray( $data) : null
Parameters
$data :
Return values
null

fromXmlToArray()

Convert XML string to array.

public fromXmlToArray(string $xml) : array<string|int, mixed>
Parameters
$xml : string
Return values
array<string|int, mixed>

Search results