Home > Article > Backend Development > The php array is converted into something like this
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?