PHP Little Knowledge Point

Source: Internet
Author: User

1. Strings can be inside the character can be accessed like an array, such as $s = "123", $s [1] is equal to 2, if the string is Chinese will be garbled, need to use MB_SUBSTR to intercept;

The single quotation mark in 2.php ("") is not required to compile the interpretation of the direct output, double quotation marks ("") is required to be compiled to interpret, and then output, so single quotation marks than double quotes output faster, two double quotation marks can be directly written in the variable;

3.mysql_close the default is to close the last open connection, although the DLL has not been extended, or recorded;

The 4.STRRCHR () function finds the last occurrence of a string in another string and returns all characters from that position to the end of the string.

5.session also provides a function session_set_cookie_params (), to set the lifetime of the session, the function must be called before the session_start () function call ;

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.