"conversion"的翻译 使用英语:
字典 中国人-英语
例子 (外部来源,未经审查)
| encoding is used for HTTP input character encoding conversion, HTTP output character encoding conversion and default character encoding for string functions defined by mbstring module. | encoding |
| There is no way to control HTTP input character conversion from PHP script. To disable HTTP input character conversion, it has to be done in php.ini. | To disable HTTP input character conversion, it has to be done in php.ini. |
| 桶跡 32 1. Argument Conversion Functions | Argument Conversion Functions |
| ד 4. Disable HTTP input conversion in php.ini | Disable HTTP input conversion in php.ini |
| Note All conversion functions expect a zval as parameter. | All conversion functions expect a zval as parameter. |
| 芞倛 32 2. Cross conversion behavior of PHP. | Cross conversion behavior of PHP. |
| These function all do in place conversion. They do not return anything. | The actual argument is stored in a union the members are |
| Conversion form object record into object array needs to handle any multiple attribute. | The names of several functions are not fixed, yet. |
| An error occurred while attempting conversion. newstream is set to NULL origstream is still valid. | An error occurred while attempting conversion. newstream is set to NULL origstream is still valid. |
| Tries as hard as possible, at the expense of additional resources, to ensure that the conversion succeeds | This causes the stream to be closed in such a way the underlying handle is preserved and returned in ret. |
| Following is a quote from the sample module discussed previously, which makes use of the conversion functions | Following is a quote from the sample module discussed previously, which makes use of the conversion functions |
| ע For PHP3 i18n users, mbstring's output conversion differs from PHP3 i18n. Character encoding is converted using output buffer. | For PHP3 i18n users, mbstring 's output conversion differs from PHP3 i18n. |
| 蛁 Although this function will not perform the conversion, some internal stream state might be changed by this call. | Note |
| If the parameters could be obtained successfully and there were no errors during type conversion, the function will return SUCCESS, otherwise it will return FAILURE. The function will output informative error messages, if the number of received parameters does not match the requested number, or if type conversion could not be performed. | The function will output informative error messages, if the number of received parameters does not match the requested number, or if type conversion could not be performed. |
| Returns an ASCII string containing the hexadecimal representation of str. The conversion is done byte wise with the high nibble first. | The conversion is done byte wise with the high nibble first. |
| The ISO 8859 1 character set is used as default for the optional third charset. This defines the character set used in conversion. | This defines the character set used in conversion. |
| The third argument defines character set used in conversion. The default character set is ISO 8859 1. Support for this third argument was added in PHP 4.1.0. | Support for this third argument was added in PHP 4.1.0. |
| An error occurred while attempting conversion that has left origstream in an indeterminate state. newstream is set to NULL and it is highly recommended that you close origstream. | Note |
| from encoding is specified by character code name before conversion. it can be array or string comma separated enumerated list. If it is not specified, the internal encoding will be used. | If it is not specified, the internal encoding will be used. |
| 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. |
| If you get an argument of one type and would like to use it as another, or if you just want to force the argument to be of a certain type, you can use one of the following conversion functions | If you get an argument of one type and would like to use it as another, or if you just want to force the argument to be of a certain type, you can use one of the following conversion functions |
| Exif supports automatically conversion for Unicode and JIS character encodings of user comments when module mbstring is available. This is done by first decoding the comment using the specified characterset. The result is then encoded with another characterset which should match your HTTP output. | The result is then encoded with another characterset which should match your HTTP output. |
| Forces conversion to a double, the default floating point type. NULL values, Booleans, resources, longs, and of course doubles remain untouched. Strings containing a number are converted to their corresponding numeric representation, otherwise resulting in 0.0. Arrays and objects are converted to 0.0 if empty, 1.0 otherwise. | Strings containing a number are converted to their corresponding numeric representation, otherwise resulting in 0.0. |
| Forces conversion to a long, the default integer type. NULL values, Booleans, resources, and of course longs remain untouched. Doubles are truncated. Strings containing an integer are converted to their corresponding numeric representation, otherwise resulting in 0. Arrays and objects are converted to 0 if empty, 1 otherwise. | Arrays and objects are converted to 0 if empty, 1 otherwise. |
| 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. |
| Forces conversion to an array. Arrays remain untouched. Objects are converted to an array by assigning all their properties to the array table. All property names are used as keys, property contents as values. NULL values are converted to an empty array. All other values are converted to an array that contains the specific source value in the element with the key 0. | All property names are used as keys, property contents as values. |