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

The php array is converted into something like this

WBOY
WBOYOriginal
2016-10-12 09:50:13855browse

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?

Statement:
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