Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #11773

Re: array how is done

Message-ID <2260503.bWFZx7Q4gD@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2013-11-09 14:59 +0100
Subject Re: array how is done
Newsgroups comp.lang.php
References <1ds2wkcf5vcge$.kr8riwvisibu$.dlg@40tude.net>

Show all headers | View raw


nawfer wrote:

> if I have this code
> 
> foreach($models as $md)
> {$articles[] = array($md->id,$md->name);}
> 
> with an example (really value) can explain how can to be the $models and
> how is $articles[]

<http://php.net/print_r>
<http://php.net/var_dump>
<http://www.catb.org/~esr/faqs/smart-questions.html>


PointedEars
-- 
Sometimes, what you learn is wrong. If those wrong ideas are close to the 
root of the knowledge tree you build on a particular subject, pruning the 
bad branches can sometimes cause the whole tree to collapse.
  -- Mike Duffy in cljs, <news:Xns9FB6521286DB8invalidcom@94.75.214.39>

Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

array how is done nawfer <novalidsforspam@alt.al> - 2013-11-09 07:53 +0100
  Re: array how is done Arno Welzel <usenet@arnowelzel.de> - 2013-11-09 08:54 +0100
  Re: array how is done Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-11-09 14:59 +0100

csiph-web