How does php filter out V11 from smart ABC?

Source: Internet
Author: User
How does php filter out the V11 from smart ABC? this space cannot be recognized. ctype_space and preg_replace ('/\ s +/', '', $ nick) = ''is not supported, that is, all blank spaces cannot be written to the database.


Reply to discussion (solution)

Only full-width spaces can be entered in ABC v11.

Only full-width spaces can be entered in ABC v11.


Oh, that is to say, you cannot use regular expression Filtering. you can only use replace to forcibly filter data, right?

$ Nick = preg_replace ('/\ s |/', '', $ nick );

$ Nick = preg_replace ('/\ s |/', '', $ nick );



Yes. the test passed. did you manually use smart ABC to create a v11?

$ Nick = preg_replace ('/\ s |/', '', $ nick );


I entered the regular expression in the smart ABC v11.

$ A = ''; $ B =''; echo base64_encode ($ ).'
'; // 44 CAecho base64_encode ($ B); // IA =

Well, the clever solution has solved my problem perfectly. thank 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.