Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #15581
| From | Denis McMahon <denismfmcmahon@gmail.com> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: insert directly key value in a function |
| Date | 2015-07-12 20:07 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <mnuhdj$5qo$1@dont-email.me> (permalink) |
| References | <mntg6a$da6$1@speranza.aioe.org> |
On Sun, 12 Jul 2015 12:40:12 +0200, alex wrote:
> 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...... );
Sorry, but I don't understand the problem and the code you're giving
doesn't help explain it.
--
Denis McMahon, denismfmcmahon@gmail.com
Back to comp.lang.php | Previous | Next — Previous in thread | 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