PHP in the use of alternative implode

Source: Internet
Author: User

In PHP, a function that often uses a specific string to manipulate a single-dimensional array to join a implode function has another way of seeing

Don't be too surprised after that!


In the official documentation, implode ("param1", "param2")


In general, PARAM1 is a specific connection string, and Param2 is a one-dimensional array that is manipulated


If the two parameters are interchangeable, have you ever operated?


Example:


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/53/92/wKioL1RrTzuBSyjaAAFZ9eWWwNw235.jpg "title=" Qq20141118215037.png "alt=" Wkiol1rrtzubsyjaaafz9ewwwnw235.jpg "/>

Printed results:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/53/94/wKiom1RrTzXReMaHAACIiLYnnOk009.jpg "title=" A.png " alt= "Wkiom1rrtzxremahaaciilynnok009.jpg"/>

The results of the two inputs are the same.

If you look carefully in the document, some of the results can still be found.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/53/93/wKioL1RrUHCx7iQ3AABky0nBS-c760.jpg "title=" 5.png " alt= "Wkiol1rruhcx7iq3aabky0nbs-c760.jpg"/>

The document says that explode is also possible, but in the actual operation, if the two parameter interchange results may not be the same

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/53/95/wKiom1RrUIvBCcLvAAD60UV2j-w842.jpg "title=" C.png " alt= "Wkiom1rruivbcclvaad60uv2j-w842.jpg"/>

The result is:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/53/93/wKioL1RrUXSjDpGJAAC8PimxI1M444.jpg "title=" 1.png " alt= "Wkiol1rruxsjdpgjaac8pimxi1m444.jpg"/> Some things still need to be practical operation to see what is the matter


Read the time must be careful, but also a lot of hands to test Oh!


This article is from the "Chase Dream" blog, please be sure to keep this source http://dreameng.blog.51cto.com/1187899/1579323

PHP in the use of alternative implode

Related Article

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.