Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #7203
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | "M. Strobel" <sorry_no_mail_here@nowhere.dee> |
| Newsgroups | comp.lang.php |
| Subject | Re: Count how many times a value occurs in an array |
| Date | Thu, 27 Sep 2012 23:52:14 +0200 |
| Lines | 24 |
| Message-ID | <ack04eFe8fvU1@mid.uni-berlin.de> (permalink) |
| References | <475e0b6d-5e6e-4a60-9ec8-21f068bc3913@googlegroups.com> <c8b9fe91-9d7b-4918-b910-835c50399743@h4g2000yqo.googlegroups.com> <5064339a$0$6841$e4fe514c@news2.news.xs4all.nl> <acjcjqF9iovU1@mid.uni-berlin.de> <42505440-8980-4772-85d5-303998824b62@googlegroups.com> <acjhinFap9pU1@mid.uni-berlin.de> <k424l7$fq5$1@speranza.aioe.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.uni-berlin.de Oh4WH+7R9H6GTK7tEU2PUwaKEfoMW9enXRdipLiFN7DdVNxefH0o/Wu+onARPnDnE= |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120825 Thunderbird/15.0 |
| In-Reply-To | <k424l7$fq5$1@speranza.aioe.org> |
| Xref | csiph.com comp.lang.php:7203 |
Show key headers only | View raw
Am 27.09.2012 20:07, schrieb Christoph Becker:
> M. Strobel wrote:
>> Be careful with call-by-reference, it is not allowed in the newest PHP versions.
>
> Only the call-time call-by-reference was deprecated in 5.3 and removed
> in 5.4. Declaring a parameter of a function as reference is absolutely
> fine.
>
> E.g.:
>
> function increase(&$n)
> {
> $n++;
> }
>
> $i = 1; increase($i); // $i == 2
> $i = 1; increase(&$i); // fatal error in PHP 5.4
>
Yes, but I had a problem with callback functions: if you created them with
create_function this was a call-time call-by-reference.
/Str.
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Count how many times a value occurs in an array Ryan <rbilesky@gmail.com> - 2012-09-26 23:25 -0700
Re: Count how many times a value occurs in an array aroniss@gmail.com - 2012-09-27 00:10 -0700
Re: Count how many times a value occurs in an array Captain Paralytic <paul_lautman@yahoo.com> - 2012-09-27 03:48 -0700
Re: Count how many times a value occurs in an array Erwin Moller <erwinmollerusenet@xs4all.nl> - 2012-09-27 13:08 +0200
Re: Count how many times a value occurs in an array "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-09-27 18:19 +0200
Re: Count how many times a value occurs in an array Ryan <rbilesky@gmail.com> - 2012-09-27 10:04 -0700
Re: Count how many times a value occurs in an array Ryan <rbilesky@gmail.com> - 2012-09-27 10:14 -0700
Re: Count how many times a value occurs in an array "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-09-27 19:43 +0200
Re: Count how many times a value occurs in an array Christoph Becker <cmbecker69@gmx.de> - 2012-09-27 20:07 +0200
Re: Count how many times a value occurs in an array "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-09-27 23:52 +0200
Re: Count how many times a value occurs in an array Christoph Becker <cmbecker69@gmx.de> - 2012-09-28 00:07 +0200
array_walk() callback Was: Count how many times a value occurs in an array "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-09-28 10:04 +0200
Re: Count how many times a value occurs in an array Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-27 18:26 -0400
Re: Count how many times a value occurs in an array Captain Paralytic <paul_lautman@yahoo.com> - 2012-09-28 07:35 -0700
Re: Count how many times a value occurs in an array Christoph Becker <cmbecker69@gmx.de> - 2012-09-28 17:40 +0200
csiph-web