php - How to fetch the values from array of array -


I need to bring the title summary cover value with this code. Please help me get the values ​​of rawdata And I need them to loop. Array ([rawData] = & gt; Array ([csrf_hash_name] => 57b9481862e81cf2ebe9ed4e962355db [title] => gfgf [summary] = & gt; can someone help me

 < code> hfdhfhfdhdf [cover] => clockfid - 2.png [id] => array ([0] => [1] = & gt;))    

Try this code below

  & lt ;? php $ array = array ("rawData" = & Gt; Array ("csrf_hash_name" => "57b9481862e81cf2ebe9ed4e962355db", "title" => "gfgf", "summary" => "hfdhfhfdhdf", "cover" => "watchfiage-2" "PNG", "id" => array (0 = & gt; "", 1 = & gt; "")); foreach ($ array ["raw data"] $ key = & gt; $ arr) {$ FetchValue = array ('title', 'summary', 'cover'); if (in_a Rray ($ key, $ fetchValue)) $$ key = $ arr;}} echo $ headline; resonance $ summarize; echo echo;; & gt;   

Cheers!

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -