Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #15580
| From | alex <alex@nomailno.it> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | insert directly key value in a function |
| Date | 2015-07-12 12:40 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <mntg6a$da6$1@speranza.aioe.org> (permalink) |
I have this array $myarr
Array (
[0] => 2
[1] => 10
)
and this work
foreach ($myarr as $key_g => $t_g) {
fty($op, $myarr);
};
if array is with only one element
Array (
[0] => 2
)
the foreach work ;
but seen that there is only one element how
can insert the directly the pair key value in the parameter (how do the
loop)
call directly the function
fty($op, $myarr...... );
Back to comp.lang.php | Previous | Next — Next in thread | Find similar | Unroll thread
insert directly key value in a function alex <alex@nomailno.it> - 2015-07-12 12:40 +0200
Re: insert directly key value in a function Denis McMahon <denismfmcmahon@gmail.com> - 2015-07-12 20:07 +0000
Re: insert directly key value in a function Erwin Moller <erwinmollerusenet@xs4all.nl> - 2015-07-13 16:23 +0200
Re: insert directly key value in a function alex <alex@nomailno.it> - 2015-07-14 11:09 +0200
csiph-web