8 course recommendations for resource data types-php Tutorial

Source: Internet
Author: User
What is a resource data type? The resource data type is introduced by PHP4. A resource is a special variable type that stores a reference to an external resource, such as opening a file, connecting to a database, and drawing a canvas area. Resources are created and used through specialized functions. Values & amp; quot;, & amp; nbsp; & amp; quot; rw & amp; quot;); & amp; nbsp; & amp; nbsp; var_d... what is a resource data type? The resource data type is introduced by PHP4. A resource is a special variable type that stores a reference to an external resource, such as opening a file, connecting to a database, and drawing a canvas area. Resources are created and used through specialized functions. Use resource variables in PHP $ fp = fopen ("test.txt", "rw"); var_dump ($ fp); fclose ($ fp); print the result: resource (5) of type (stream) Number 5: indicates that the resource ID is 5. Stream: resource type name. The resource ID kernel stores the registered resource variables in a HashTable and uses the key in the HashTable where the resource is located as the resource ID. Therefore, the actual storage of resource variables in PHP is an integer.

1. php: detailed description of resource data type instances

Summary: So far, you have been working on a very basic user space data type, string, value, TRUE/FALSE equivalent. even if you have already started to access arrays in the previous chapter, you only collect arrays of these basic data types.

3. php extension and embedding-resource data type 2_PHP tutorial

Introduction: php extension and embedding-resource data type 2. Complex data types stored in resource variables usually require memory allocation, CPU time, or network communication during initialization. However, the resources such as database connections are retained between requests.

4. php extension and embedded resource data type 2

Introduction: php extension and embedding-resource data type 2. Complex data types stored in resource variables usually require memory allocation, CPU time, or network communication during initialization. However, the resources such as database connections are retained between requests.

5. php extension and embedding-resource data type 2

Introduction: complex data types stored in resource variables usually require memory allocation, CPU time, or network communication during initialization. However, the class & 20284; reserved between requests must be persistent for database connection. Whether resources are persistent is a factor that must be taken into account. First, see

6. [general translation] [php extension and embedded] Chapter 8th-Resource Data types

Introduction: [php extensions and embedded] Chapter 8th-resource data types all translations pdf document: examples (http://www.laruence.com) and walu (http://www.walu.cc) two Daniel organization translations.

7. php extension and embedding-resource data type 2

Introduction: php extension and embedding-resource data type 2 complex data types stored in resource variables usually require some memory allocation, CPU time or network communication during initialization. However, to retain resources similar to database connections between requests, you must make them persistent. Whether resources are persistent is a factor that must be taken into account. First, let's look at the memory allocation problem: emal is preferred when using php.

8. [wildcard] [php extension and embedded] Chapter 8th-Resource Data types

Introduction: [Translate] [php extensions and embedded] Chapter 8th-resource data types all translations pdf document: examples (http://www.laruence.com) and walu (http://www.walu.cc) two Daniel organization translations.

The above are the details of the 8 course recommendations for resource data types. For more information, see other related articles in the first PHP community!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.