The pit Father's regular, ask

Source: Internet
Author: User
The pit Father's regular, ask
config.php

$_lang[' new_arrival '] = ' new arrivals ';
$_lang[' hot_products '] = ' hot products ';
$_lang[' group_deals '] = ' Group deals ';
$_lang[' Specials '] = "specials";
$_lang[' after ') = ' contact cu\ ' Stomer


Service for
Order Status and
Other after-sales issues
';
$_lang[' group_deals '] = ' Group deals ';

$subject = file_get_contents ("config.php");
$pattern = ' How to write here ';
Preg_match_all ($pattern, $subject, $matches);
Print_r ($matches);

I'm going to take out everything that's behind the equals sign, how do I write it?
Note the symbols in the string after the equals sign (single quotation marks, double quotes, escaped Fu Yi, and line breaks are taken).

The results are as follows:
1. ' New arrivals '
2. ' Hot Products '
3. ' Group Deals '
4. "Specials"
5. ' Contact Cu\ ' Stomer


Service for
Order Status and
Other after-sales issues
'

Share to:


------Solution--------------------
$subject =<<< ' TXT '
$_lang[' new_arrival '] = ' new arrivals ';
$_lang[' hot_products '] = ' hot products ';
$_lang[' group_deals '] = ' Group deals ';
$_lang[' Specials '] = "Specials";
$_lang[' after '


Service for
Order Status and
Other after-sales issues
';
  • 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.