Php putenv functions cannot be used in Chinese

Source: Internet
Author: User
If you know laravel, you can take a look at the above section. if you don't know about it, go straight to the split line ;. for any item in env, use MAIL_DRIVER as an example to change it to "my". use the env function to get the value normally. change it to "I" and use the env function to get the value normally; {code ...} other... if you know laravel, you can take a look at the above section. if you don't know about it, go straight to the split line below;

Any item in. env takes MAIL_DRIVER as an example.
Change to "my" and use the env function to get the value normally;
Changed to "I" and the env function won't be available;

MAIL_DRIVER = my var_dump (env (MAIL_DRIVER ''); // NULLMAIL_DRIVER = my var_dump (env (MAIL_DRIVER''); // My

Other Chinese characters, such as "good", will also encounter this situation;
I have to say that laravel is profound and profound. I have studied the env function source code;
The final problem is;
----------------------------------------------- Understand and do not understand the split line of the laravel framework ------------------------------------------------

Putenv ("PROJECT_NAME = my"); phpinfo ();

In phpinfo, Environment can be searched for PROJECT_NAME.

Putenv ("PROJECT_NAME = Me"); phpinfo ();

In phpinfo, Environment cannot find PROJECT_NAME.

Ask your friends. why? How can I set Chinese values without barriers?

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.