"types"的翻译 使用英语:


  字典 中国人-英语

  例子 (外部来源,未经审查)

Complex Types
Next
Complex types such as arrays and objects require different treatment. Zend features a single API for these types they're stored using hash tables.
Zend features a single API for these types they 're stored using hash tables.
瞰赽 1. MySQL field types
Example 1.
桶跡 2. Available socket types
Available socket types
The types of fields available are
The types of fields available are
Notes on the use of various SQL types
At the PHP interface, the following type conversions are automatically applied when retrieving SQL fields
桶跡 43 1. Resource types for castas
A simple boolean expression will not be interpreted as you intended.
桶跡 43 2. Resource types for castas
Value
The fifth parameter attrsonly should be set to 1 if only attribute types are wanted. If set to 0 both attributes types and attribute values are fetched which is the default behaviour.
With the sixth parameter sizelimit it is possible to limit the count of entries fetched.
蛁 To reduce complexity in the following source examples, we're only working with simple types such as integers at first. A discussion about creating more advanced types follows later in this chapter.
A discussion about creating more advanced types follows later in this chapter.
It provides info about columns, such as field names and field types.
It provides info about columns, such as field names and field types.
Contains this variable's type. For a list of available types, see 桶跡 32 4.
0 means that this variable is not a reference 1 means that this variable is a reference to another variable.
醴翹 Extension Conventions Macros Memory Management Directory and File Functions String Handling Complex Types
Prior to working through the rest of this chapter, you should retrieve clean, unmodified source trees of your favorite Web server.
A type specifier that says what type the argument data should be treated as. Possible types
An optional precision specifier that says how many decimal digits should be displayed for floating point numbers.
Returns the type of the node. All possible types are listed in the table in the introduction.
All possible types are listed in the table in the introduction.
Scalar variables are those containing an integer, float, string or boolean. Types array, object and resource or not scalar.
Scalar variables are those containing an integer, float, string or boolean.
Returns name of the node. The name has different meanings for the different types of nodes as illustrated in the following table.
Table 1.
Returns value of the node. The value has different meanings for the different types of nodes as illustrated in the following table.
Table 1.
Adds a zval container to the object. This is useful if you have to add properties which aren't simple types like integers or strings but arrays or other objects.
This is useful if you have to add properties which aren 't simple types like integers or strings but arrays or other objects.
Hyperwave has its own terminology to name certain pieces of information. This has widely been taken over and extended. Almost all functions operate on one of the following data types.
In the web the name also contains the information on where the object is located in the hierarchy.
This function returns the given string converted from one Cyrillic character set to another. The from and to arguments are single characters that represent the source and target Cyrillic character sets. The supported types are
The supported types are
Overload resolution is in general a hard problem given the differences in types between the two languages. The PHP Java extension employs a simple, but fairly effective, metric for determining which overload is the best match.
Additionally, method names in PHP are not case sensitive, potentially increasing the number of overloads to select from.
This function will send the message text to the user nick on the server connected to by connection. IRC servers and other software will not automatically generate replies to NOTICEs in contrast to other message types.
IRC servers and other software will not automatically generate replies to NOTICEs in contrast to other message types.
In addition to the basic resource types above, the conversion process can be altered by using the following flags by using the OR operator to combine the resource type with one or more of the following values
Table 43 2.
Compatability mode with old versions of PHP 3.0. If on, this will cause PHP to automatically assign types to results according to their Sybase type, instead of treating them all as strings. This compatability mode will probably not stay around forever, so try applying whatever necessary changes to your code, and turn it off.
This compatability mode will probably not stay around forever, so try applying whatever necessary changes to your code, and turn it off.
Beginning with PHP 4.3, bits and channels are present for other image types, too. However, the presence of these values can be a bit confusing. As an example, GIF always uses 3 channels per pixel, but the number of bits per pixel cannot be calculated for an animated GIF with a global color table.
As an example, GIF always uses 3 channels per pixel, but the number of bits per pixel cannot be calculated for an animated GIF with a global color table.
In the tradition of PHP, arrays and hashtables may pretty much be used interchangably. Note that hashtables in PHP may only be indexed by integers or strings and that arrays of primitive types in Java can not be sparse. Also note that these constructs are passed by value, so may be expensive in terms of memory and time.
The primary advanatage of this from a PHP perspective is that web servers which support servlets typically take great care in pooling and reusing JVMs.
Forces conversion to an object. Objects remain untouched. NULL values are converted to an empty object. Arrays are converted to objects by introducing their keys as properties into the objects and their values as corresponding property contents in the object. All other types result in an object with the property scalar, having the corresponding source value as content.
All other types result in an object with the property scalar, having the corresponding source value as content.
蛁 It is currently impossible to register resource variables in a session. For example, you cannot create a connection to a database and store the connection id as a session variable and expect the connection to still be valid the next time the session is restored. PHP functions that return a resource are identified by having a return type of resource in their function definition. A list of functions that return resources are available in the resource types appendix.
PHP functions that return a resource are identified by having a return type of resource in their function definition.