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.
fromEmptyToArray()  : array<string|int, mixed>
Convert empty to array.
fromFileToArray()  : array<string|int, mixed>
Convert file to array.
fromFloatToArray()  : array<string|int, mixed>
Convert float to array.
fromHtmlToArray()  : array<string|int, mixed>
Convert HTML to array.
fromImageToArray()  : array<string|int, mixed>
Convert image to array.
fromIntegerToArray()  : array<string|int, mixed>
Convert integer to array.
fromJsonToArray()  : array<string|int, mixed>
Convert JSON to array.
fromTextToArray()  : array<string|int, mixed>
Convert text to array.
fromXmlToArray()  : array<string|int, mixed>
Convert XML to array.
xml2json()  : array<string|int, mixed>
Convert an XML doc to JSON string.

Methods

fromArrayToArray()

Convert array to array.

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

fromBooleanToArray()

Convert boolean to array.

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

fromEmptyToArray()

Convert empty to array.

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

fromFileToArray()

Convert file to array.

public fromFileToArray( $data) : array<string|int, mixed>
Parameters
$data :
Tags
throws
ApiException
Return values
array<string|int, mixed>

fromFloatToArray()

Convert float to array.

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

fromHtmlToArray()

Convert HTML to array.

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

fromImageToArray()

Convert image to array.

public fromImageToArray( $data) : array<string|int, mixed>
Parameters
$data :
Tags
throws
ApiException
Return values
array<string|int, mixed>

fromIntegerToArray()

Convert integer to array.

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

fromJsonToArray()

Convert JSON to array.

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

fromTextToArray()

Convert text to array.

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

fromXmlToArray()

Convert XML to array.

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

xml2json()

Convert an XML doc to JSON string.

public xml2json(SimpleXMLElement &$xml) : array<string|int, mixed>
Parameters
$xml : SimpleXMLElement

XML element.

Return values
array<string|int, mixed>

Search results