Error in PHP using End method

Source: Internet
Author: User

  1. <b>strict standards</b>: Only variables should is passed by reference in <b>

    1. If this error occurs when using End (), then the cause may be a parameter problem, let's find the end () function API in the manual;

  2. 2. You can see that the argument to end is a reference (reference), if you pass a variable reference as a parameter to the function, there is no problem, but if a variable's split expression is passed directly as a parameter to the end () function, this error will occur;

  3. 3. Solution:

    <1> $temp = Explode (', ', $example);

    Return end ($temp);

    Divide the variables you want to split into groups, save them in a temporary variable, and then use the end () function

    <2> Changing the error configuration:

    Error_reporting (e_all ^ e_notice);

  4. 4

    4. When installing Ecshop, the following error may be reported:

    Strict standards:only variables should be passed by reference in E:\Tools\ECShop_V2.7.3_UTF8_release1106\upload\ Includes\cls_template.phpon Line 418

    ###########################################

    # # # Solutions Ditto # # #

    ###########################################

Error in PHP using End method

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.