Gonzalo Monzón escribió:
Attached results and code. (tested on PHP 4.3.4)
--
Testing bidimensional and single dimension array manipulation
Fill style A, bidimensional array: 2,1603
Iteration style A, bidimensional array: 9,9071
Total
On 14/05/06, Gonzalo Monzón [EMAIL PROTECTED] wrote:
Satyam escribió:
Of course, another possibility is that the author does not know how to
handle multidimensional arrays (just to say it before anyone else
points an obvious alternative)
I don't think the author does not know how to handle
Robin Vickery escribió:
On 14/05/06, Gonzalo Monzón [EMAIL PROTECTED] wrote:
Satyam escribió:
Of course, another possibility is that the author does not know how to
handle multidimensional arrays (just to say it before anyone else
points an obvious alternative)
I don't think the author
On Sat, May 13, 2006 2:20 pm, Ryan A wrote:
Been reading some other code that I got from the net,
and have come across some wierd looking code, would
appreciate it if someone could explain it to me:
$hits = array();
$bytes = array();
$blocked = array();
$baps = array();
$bapm = array();
On Sat, May 13, 2006 6:37 pm, Rory Browne wrote:
There are some cases where the Error Suppression operator may be
useful in
good code.
Last I checked, you pretty much HAD to use it for pg_fetch_row() since
it does an E_NOTICE when you try to fetch a row beyind the number
available...
You
Hey Rich,
// Add to the running totals
@$hits[$username|$subnet]++;
@$bytes[$username|$subnet]+=$byte;
@$baps[$username|$subnet|$this_second]++;
@$bapm[$username|$subnet|$this_minute]++;
@ is suppressing the E_NOTICE error message that the
variables are not
pre-set.
Yep, I got
Richard Lynch wrote:
On Sat, May 13, 2006 6:37 pm, Rory Browne wrote:
There are some cases where the Error Suppression operator may be
useful in
good code.
Last I checked, you pretty much HAD to use it for pg_fetch_row() since
it does an E_NOTICE when you try to fetch a row beyind the
Hey,
Been reading some other code that I got from the net,
and have come across some wierd looking code, would
appreciate it if someone could explain it to me:
$hits = array();
$bytes = array();
$blocked = array();
$baps = array();
$bapm = array();
So far so good then further down:
// Add
- Original Message -
From: Ryan A [EMAIL PROTECTED]
To: php php php-general@lists.php.net
Sent: Saturday, May 13, 2006 9:20 PM
Subject: [PHP] Wierd ass code...
Hey,
Been reading some other code that I got from the net,
and have come across some wierd looking code, would
appreciate
On Sat, 2006-05-13 at 15:20, Ryan A wrote:
Hey,
Been reading some other code that I got from the net,
and have come across some wierd looking code, would
appreciate it if someone could explain it to me:
$hits = array();
$bytes = array();
$blocked = array();
$baps = array();
$bapm =
- Original Message -
From: Satyam [EMAIL PROTECTED]
To: Ryan A [EMAIL PROTECTED]; php php php-general@lists.php.net
Sent: Saturday, May 13, 2006 9:53 PM
Subject: Re: [PHP] Wierd ass code...
- Original Message -
From: Ryan A [EMAIL PROTECTED]
To: php php php-general
Thanks Rob, Satyam,
I understood the error supression but never came
across arrays where people were creating keys on the
fly like this and incrementing themjust looked a
bit weird to me.
Cheers!
Ryan
--- Robert Cummings [EMAIL PROTECTED] wrote:
On Sat, 2006-05-13 at 15:20, Ryan A wrote:
// Add to the running totals
@$hits[$username|$subnet]++;
@$bytes[$username|$subnet]+=$byte;
@$baps[$username|$subnet|$this_second]++;
@$bapm[$username|$subnet|$this_minute]++;
What kind of arrays are the above? I have never seen
nor worked with arrays like them before.
If you can
On Sat, 2006-05-13 at 19:37, Rory Browne wrote:
I would submit that the error suppression operator isn't BAD BAD BAD
per se - it's just like goto, in that 99% of its use is bad. In the
absence of a comment justifying it, the error-suppressed expression is
BAD.
There are some cases where
Satyam escribió:
- Original Message - From: Satyam [EMAIL PROTECTED]
To: Ryan A [EMAIL PROTECTED]; php php php-general@lists.php.net
Sent: Saturday, May 13, 2006 9:53 PM
Subject: Re: [PHP] Wierd ass code...
- Original Message - From: Ryan A [EMAIL PROTECTED]
To: php php php
15 matches
Mail list logo