Home > Backend Development > PHP Tutorial > The php array is converted into something like this

The php array is converted into something like this

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-10-12 09:50:13
Original
928 people have browsed it

An array like thisArray ( [0] => a [1] => s [2] => d [3] => f ) is converted into Array ( '0' => ' a','1' => 's', '2' => 'd', '3' => 'f' ) Is it possible? Please give me guidance

In fact, the process is as follows: two strings $atr = 1,2,3,4 $str=a,b,c,f are converted into array array in one-to-one correspondence ('1'=>'a','2' =>'b','3'=>'c','4'=>'f')

And print out array('1'=>'a','2'=>'b','3'=>'c','4'=>'f'), don't know this Is it easy to understand?

Related labels:
php
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template