A.5 PHP Datatype Conversion

The conversion of datatypes between ActionScript and PHP is straightforward, as shown in Table A-9.

Table A-9. Flash-to-PHP datatype conversion

Flash (ActionScript)

PHP

Null

Null

Integer

Integer

Float

Double

String

String

Array

Array (associative)

Object

Object

Recordset

Resource[3]

[3] The only supported databases are MySQL, ODBC, and PostgreSQL.

The conversion of datatypes between PHP and ActionScript is shown in Table A-10. The one kind of conversion that can be a bit confusing has to do with PHP arrays. Refer to "Datatype Conversions" in Chapter 9 for details.

Table A-10. PHP-to-Flash datatype conversion

PHP

Flash (ActionScript)

Null

Null

Integer

Integer

Double

Float

String

String

Array (indexed)

Array

Array (associative)

Object

Object

Object

Resource[4]

Recordset

[4] The only supported databases are MySQL, ODBC, and PostgreSQL.



    Part III: Advanced Flash Remoting