Php filters multidimensional Array (& nbsp; [0] & gt; Array (& nbsp; [isxinx] & gt; 1 & nbsp; [rate] & gt; 0.000 & nbsp; [qs] & gt; Issue 1 prediction & nbsp; [cb] & gt; 20 & nbsp; [title] & gt; [code to success] confidence prediction & nb php filter multi-dimensional array before lucky 3D177 trial No.
Array (
[0] => Array (
[Isxtasks] => 1
[Rate] = & gt; 0.000
[Qs] => Issue 1 prediction
[Cb] => 20
[Title] => [code to success] confidence prediction before the lucky 3D177 test number
[Id] = & gt; 4137166
[Userid] => 22843
[Childtype] => before the trial no.
[Mfarticleid] => 0
[Author] => code to success
[Pubtime] => 2012-07-23 14:18:30
[Cptypeid] => 2
[Jtpath] =>
[Num] => 2
[Ltitle] => Historical score
[Pm] = & gt; 10001)
[1] => Array (
[Isxtasks] => 1
[Rate] = & gt; 0.000
[Qs] => Issue 1 prediction
[Cb] => 20
[Title] => [code to success] confidence prediction before the lucky 3D177 test number
[Id] = & gt; 4137166
[Userid] => 22843
[Childtype] => before the trial no.
[Mfarticleid] => 0
[Author] => code to success
[Pubtime] => 2012-07-23 14:18:30
[Cptypeid] => 2
[Jtpath] =>
[Num] => 2
[Ltitle] => Historical score
[Pm] => 10001 ))
Now I want to obtain qs, cb, title, id, userid, author, ltitle
Data of these seven fields! How can I filter out other products?
------ Solution --------------------
Foreach ($ arr as $ v)
$ Ar [] = array ('Qs' => $ v ['Qs'],...);
Print_r ($ ar );
------ Solution --------------------
The reply is correct!
However, the data source may be retrieved from the data source. The best way is to set the field name when selecting, instead of using select *
SQL code
select qs,cb,title,id,userid,author,ltitle from table