Home > Backend Development > PHP Tutorial > Function application sharing; concatenate the value of the array into a variable using text

Function application sharing; concatenate the value of the array into a variable using text

WBOY
Release: 2016-07-25 09:06:20
Original
865 people have browsed it
Function application sharing; concatenate the values ​​of the array into a variable using text                  
                                                                                                                                                                                                                                                                                                    



function MultiValuedInOne($tmp_arr)
{
if(isset($tmp_arr))foreach($tmp_arr as $key =>$value){
    if($key==0){
  1. $tmp _x=$ Value; e}
  2. eLSE {
  3. $ tMP_x = "$ tmp_x, $ value";
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template