Php collection: type constraints

Source: Internet
Author: User

Suddenly, I don't want to do anything, just like my uncle .. However, the habit of writing a blog every workday cannot be broken .. So let's have a try today.

PHP has been in use for almost two years, but this was the first time I saw it. Suddenly, I felt like I had gone back to the five dregs of the war.
Open the official document "type constraints" to explain it very clearly.
There are four types in total: Class Name, interface, array, callable (from PHP 5.4)
No int string can be used ..
The example and other PHP manuals have already been very detailed. I am also too lazy to write it. This is just a point of knowledge and I will take a look at it ..

In fact, I haven't written PHP for a long time. Now I want to read all the major frameworks, but I doubt that I will actually use PHP ,,

 

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.