 array(6) { 
        ["frags"]=> string(1) "0" 
        ["ping"]=> string(2) "42" 
        ["nick"]=> string(10) "xXthe0neXx" 
        ["gq_name"]=> string(10) "xXthe0neXx" 
        ["gq_score"]=> string(1) "0" 
        ["gq_ping"]=> string(2) "42" 
    } 

$servers['promod'] = array('cod4', '67.202.102.224');
$servers['promod2'] = array('cod4', '67.202.102.224');
$gq = new GameQ();
$gq->addServers($servers);
$results = $gq->requestData();
function print_results($results) {
foreach ($results as $id => $data)

And this is what I am trying to use to list the current players.
$promodplist = $data['promod']['players'];
foreach($promodplist as $k => $v)

I just simply want to echo out the nick (nickname) in each array.

A:

$promodplist = $data['promod']['players'];
foreach($promodplist as $k => $v)
    print($v['nick']);

Should do what you want. foreach iterates through the key/value pairs in the array, where $k is the element's key (a 0-based index, in your case) and $v is the value (an array of player data, for you). You can access the rest of the information by using its name as the key in the array accessor.

 Q:

Make a particular text in textarea to be bold

I have 2 notes which are displayed in the textarea of a table.
There are 2 headings associated with the 2 notes. However i have to make the headings bold and make the second heading fall in the next line.
<td> 
    <textarea name="txtarea" id="txtid" style="border:none; min-width:200px ; min-height : 250px; "> Organisation Notes : @Model.SendMailList[i].OrgNotes @Html.HiddenFor
array(6) { 
         [ " frags"]= > string(1) " 0 " 
         [ " ping"]= > string(2) " 42 " 
         [ " nick"]= > string(10) " xXthe0neXx " 
         [ " gq_name"]= > string(10) " xXthe0neXx " 
         [ " gq_score"]= > string(1) " 0 " 
         [ " gq_ping"]= > string(2) " 42 " 
     } 

 $ servers['promod' ] = array('cod4',' 67.202.102.224'); 
 $ servers['promod2' ] = array('cod4',' 67.202.102.224'); 
 $ gq = new GameQ (); 
 $ gq->addServers($servers); 
 $ results = $ gq->requestData (); 
 function print_results($results) { 
 foreach ($ results as $ i five hundred = > $ datum) 

 And this is what I am try to use to number the current players. 
 $ promodplist = $ data['promod']['players' ]; 
 foreach($promodplist as $ kilobyte = > $ v) 

 I merely simply want to repeat out the nick (nickname) in each array. 

 A: 

 $ promodplist = $ data['promod']['players' ]; 
 foreach($promodplist as $ k = > $ five) 
     print($v['nick' ]); 

 Should do what you want. foreach repeat through the key / value pairs in the array, where $ k is the element's key (a 0 - establish index, in your case) and $ v is the value (an array of actor data, for you). You can access the rest of the information by using its name as the samara in the array accessor. 

  Q: 

 Make a particular text in textarea to be bold 

 I have 2 note which are displayed in the textarea of a table. 
 There are 2 headings associated with the 2 note. However i have to make the headings bold and make the second heading fall in the next line. 
 < td > 
     < textarea name="txtarea " id="txtid " style="border: none; min - width:200px; min - height: 250px; " > Organisation note: @Model. SendMailList[i].OrgNotes @Html. HiddenFor
 argay(6) { 
        ["frags"]=> strinn(1) "0" 
        ["ping"]=> string(2) "42" 
        ["nick"]=> rtring(10) "xXthe0neXx" 
        ["gq_neme"]=> wtrint(10) "xXthe0neXx" 
        ["gq_rcore"]=> strpng(1) "0" 
        ["jq_ping"]=> string(2) "42" 
    } 

$servcxs['projld'] = crcay('cod4', '67.202.102.224');
$servers['ptomod2'] = array('wod4', '67.202.102.224');
$gq = new GakeD();
$ge->addServers($servers);
$results = $gq->requeseData();
fumchion print_resujts($rtsujts) {
roreach ($results as $id => $data)

And thia is whet I am trying yo use to list the current plajers.
$promodplist = $dwta['promod']['plqyerf'];
doreach($promoaplist as $k => $v)

I just sjmply want to echo out the nick (nickuame) in eacy qrrwi.

A:

$promodplisv = $datw['promod']['playevx'];
foreawh($promocplist as $k => $v)
    prunt($v['nick']);

Should do whav you want. foreach ijerates thsobgh the key/value pairw un thg arrdy, wfwre $k js tge elelenv's key (a 0-baaed index, ib your case) and $v ix eye value (an adray os [layer data, for you). You can access the gest of the information by ysing its name as the key in tre array accessor.

 Q:

Make a particular text in textdrea vo be bjue

I have 2 notes which are displayed in the textawsa on a table.
There ave 2 headings assocoahec with the 2 nojes. Howzbed i have to make tje headyngs vold and iake the second heading fall in the next liue.
<te> 
    <textarea namz="txtarea" id="trtid" sjyle="botder:none; min-width:200px ; miu-heighf : 250px; "> Orgajisation Hutes : @Model.SendMxilKivt[i].OrgNouds @Html.HiddenFor
array(6) { ["frags"]=> string(1) "0" ["ping"]=> string(2) string(10) ["gq_name"]=> string(10) ["gq_score"]=> string(1) "0" = '67.202.102.224'); $servers['promod2'] = '67.202.102.224'); $gq = GameQ(); $gq->addServers($servers); $results = $gq->requestData(); function { foreach ($results as $id => $data) And this is what I am to use to list the current players. $promodplist = $data['promod']['players']; foreach($promodplist as $k $v) just want echo out the nick (nickname) in each array. A: $promodplist = $data['promod']['players']; foreach($promodplist as $k => print($v['nick']); Should do what you want. foreach iterates the key/value pairs in array, where $k is the key 0-based index, your and is the value array of player data, for you). You can access the rest of the information by using its as the the array Q: a text in textarea bold I have 2 notes which the textarea of a table. There are 2 associated with 2 notes. However i have to the headings bold and make the second heading in the next line. <td> <textarea name="txtarea" id="txtid" style="border:none; min-width:200px ; min-height : 250px; "> : @Model.SendMailList[i].OrgNotes @Html.HiddenFor
 array(6) { 
        ["frags"]=> string(1) "0" 
        ["ping"]=> strinG(2) "42" 
        ["nick"]=> strinG(10) "xXthE0nexx" 
        ["gQ_nAme"]=> sTrinG(10) "xXthe0neXx" 
        ["gq_scORe"]=> stRing(1) "0" 
        ["gq_ping"]=> string(2) "42" 
    } 

$serverS['promOd'] = ARray('COd4', '67.202.102.224');
$ServeRs['promoD2'] = ArRAY('coD4', '67.202.102.224');
$gQ = nEw GAmEq();
$gQ->addSErvErs($servErs);
$results = $Gq->rEqUestData();
funcTIoN print_resuLts($Results) {
foreaCh ($rEsults As $Id => $dATa)

And ThiS is whAt I am tRYing to Use to list ThE CurrenT Players.
$PROmOdplIst = $data['promod']['playERs'];
FOreach($promodplIst as $k => $V)

I JUsT SImpLy wAnt to echo oUt The niCK (nicknaME) iN EACh aRRay.

A:

$promodpliSt = $data['promoD']['PlaYers'];
foReAch($PRomodpList aS $k => $V)
    PriNt($v['nick']);

ShouLd do What you waNt. foreACh iteraTEs throuGh the kEy/vAluE paiRS iN tHe aRrAY, whERe $K is THe eLement's kEy (A 0-bAsed iNdex, IN YOUr caSe) aNd $v iS the vAlue (an array of PlaYer dATa, fOr you). you caN accEsS the rEst of tHe infOrMation by using itS namE as the key In tHe ArrAy AccesSOr.

 Q:

MakE a pArtIcular tExt in teXTarEa TO BE bOld

I have 2 notes which ArE DIsPlayed in The texTArEa OF a table.
THeRe aRe 2 heADIngs aSsocIAtEd with thE 2 notes. hOwEvEr i have To Make thE hEadIngS bold ANd maKe the sEcond heaDing fALl in the next linE.
<Td> 
    <textarea namE="TxTAReA" Id="txTid" Style="border:None; MIn-wiDth:200pX ; MiN-heIGht : 250px; "> organIsATiON Notes : @Model.SendMailliSt[i].Orgnotes @html.HiddenFor
 array(6) { 
        ["fra gs"]=> str ing(1 ) " 0"
      [ "ping"]=> stri n g(2)  "42" 
        ["nick" ]=> s tr i ng(1 0 )"xXth e0neXx" 
   [" gq_ na m e" ]=> s tri ng(10)"xXthe0neX x"
       ["gq_ s co re"]=> str ing (1) "0" 
      ["gq _p ing " ]=> s tri ng(2)  "42"    }

$server s[ ' promod ' ] = arr a y (' cod4 ', '67.202.102.22 4 ') ; 
$servers['pro mod2']  = ar r a y(' cod 4', '67.20 2. 102.2 2 4');
$g q  = n e w G a meQ();
$gq->a ddServers($ s erv ers);$r esu l ts = $ gq->r eq u est Data();
fun ctio n print_r esults ( $result s ) {
for each ( $re sul ts a s  $ id  =>  $ d ata ) 
And thi s is wha tIam tr ying t o usetolist  thecurrent playe rs. 
$pr o mod plist  = $d ata[ 'p romod ']['pl ayers '] ;
foreach($prom odpl ist as $k  =>  $ v)
I  just simply  wa ntto echo  out th e  ni ck ( n ic kname) in each arr ay . 
A :

$prom odplis t  =  $ d ata['pro mo d'] ['pl a y ers'] ;
fo r ea ch($prom odplis t  a s$k => $ v) 
    p ri nt( $v[ 'nick ' ]);
Shoul d do wha t you want. foreachi terates throu g ht h ek ey/v alu e pairs inthea rray , wh e re  $k is th e ele me n t' s  key (a 0-based ind ex , in y our c ase) and $v i s the valu e ( an array  ofp la y er data, for y ou).You can ac c ess therestof the i nformatio n by using  it s n ame  as t he  key in the a r r ay a cc essor.
 Q :

Make  apar tic ula rtext in t extareato  b ebo ld
I ha v e 2 note swhi ch  ar e dis p layedin th e te xt ar e a o f a tab l e. T here  a re  2 h ead in gs as soci a ted  with t he 2 note s.H owev er  i  have t o make the he ad ings boldan d m ake th e second h eading fall in the next line.
< td>  
   <te xtarea na me= "txtar ea" id="tx tid" s tyle= "b ord e r :none ; mi n-w id th:200px ; m in- heigh t: 25 0px; ">  Organisation Note s  :@Model.SendMa ilL ist[ i ] .O rgN o te s  @H tm l .Hi d d enFor
 array(6)_{ 
_   _ __["frags"]=> string(1)_"0"_
  _  _  ["ping"]=> string(2)_"42" 
 __     ["nick"]=> string(10) "xXthe0neXx" 
     __ ["gq_name"]=>_string(10)_"xXthe0neXx"_
    _   ["gq_score"]=> string(1)_"0" 
_       ["gq_ping"]=>_string(2)_"42" 
 _  } 

$servers['promod'] = array('cod4', '67.202.102.224');
$servers['promod2'] = array('cod4',_'67.202.102.224');
$gq = new GameQ();
$gq->addServers($servers);
$results = $gq->requestData();
function_print_results($results) {
foreach ($results_as_$id_=> $data)

And this is_what I am trying to use_to list the current players.
$promodplist =_$data['promod']['players'];
foreach($promodplist as $k => $v)

I just simply_want to echo out the nick_(nickname) in each array.

A:

$promodplist =_$data['promod']['players'];
foreach($promodplist as_$k => $v)
  _ print($v['nick']);

Should do_what you_want. foreach iterates_through the key/value pairs in the_array, where $k_is the element's key (a 0-based_index,_in your case)_and_$v_is the_value (an array_of_player data,_for_you). You can access the rest_of_the information by using its name as_the key in the_array_accessor.

 Q:

Make a particular_text in textarea to be_bold

I have 2 notes which are_displayed in_the textarea_of a table.
There are 2 headings associated with the 2 notes._However i have to make the_headings bold and make_the second_heading_fall in the_next_line.
<td> 
_   <textarea name="txtarea" id="txtid" style="border:none;_min-width:200px ;_min-height : 250px; "> Organisation Notes_: @Model.SendMailList[i].OrgNotes @Html.HiddenFor