Can I use a new object?-> value?-php Tutorial

Source: Internet
Author: User
Can I use a-& gt; value for a new object? generally, the php object-oriented value uses the-> symbol, that is, an object is first created, use this arrow tool to obtain methods and attributes in the class. But how can this arrow be used even if there is no new? Does php have any potential rules, that is, there are no clear rules?


Reply to discussion (solution)

$ Mysql-> query () returns an object that has been instantiated.

$ Mysql-> query () returns an object that has been instantiated.



As I expected, php does have secrets that are unknown, which is why beginners cannot understand them. In fact, it is enough to tell the game rules here, but I don't know why. some people may say, isn't that clear? imagine the most difficult thing to learn about a technology is the first time you come into contact, because you don't know its rules, you have encountered some problems after contact, and then you know, this is another thing.
It seems that php has many secrets that you don't want to tell beginners!

People who are new to php must have an ideology: php has many secrets, and these are the so-called technologies that the so-called veteran shows off. this sounds really disgusting. It is estimated that such a person's mentality may have been abused by php at the beginning, so he has left his post ill. so far, he is very worried about it. so he has seen other php beginners become jealous, I thought it was so difficult when I first learned it, and it was even harder when I got to you. it was a little guy's mentality, and this kind of person came up with a remark and checked the manual, I really want to fuck you!

Let me tell you the so-called veterans that your mom forced you to check the manual. you don't need to mention it. you need to teach you how to check it. do you know that the manual cannot be found, is it difficult for you to check the manual to solve the problem? I really want to fuck you!

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.