[snip]
How can i remove the 'count' from the array?
www.php.net/unset
Regards,
Frank
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Can you please help me with the following
This is in the array($info[0][bdnadvocaat])
Array ( [count] = 2 [0] = 210 [1] = 149 )
This is the code:
$testje=array($info[0][bdnadvocaat]);
$test=array_shift($testje);
print_r($test);
This is the output
Array ( [count] = 2 [0] = 210 [1] = 149 )
how can I do an array shift without reseting the keys?
how can I get the key of the first element removed with an array _shift?
thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Strange, are you sure it's 4.0.4 ??
The manual for array_shift() says it's supported from 4.0.0 .
Maybe try the alias array_pop() ?
otherwise there'll be other ways to strip the first part of the directory,
for example using regexp, try something like:
?
ereg(^[^/]/(.*)$,
On Thursday 10 January 2002 17:38, [EMAIL PROTECTED] wrote:
Strange, are you sure it's 4.0.4 ??
The manual for array_shift() says it's supported from 4.0.0 .
Maybe try the alias array_pop() ?
array_pop() and array_shift are *different* :)
array_pop() takes an element off the END of the
Yeah its 4.0.4. I figure it strange also since array_shift was there
since 4.0.0.
array_pop(), isn't that for the last element. I want to take out the
first element, thus array_shift.
Ill try the regexp and see how it goes...
Ill report back
Thanks
[EMAIL PROTECTED] wrote:
Strange, are you
You are right, I should've known (used it before) ..
Ofcourse you could do an array_reverse() before and after,
don't know about the performance impact of that however.
bvr.
array_pop() and array_shift are *different* :)
array_pop() takes an element off the END of the array.
array_shift()
Thats my biggest concern now, performance with whatever alternatives
that can be dreamed up...
Anyway, its 6 in the morning, time for sleep. Maybe Ill dream up
something else
[EMAIL PROTECTED] wrote:
You are right, I should've known (used it before) ..
Ofcourse you could do an
On Thursday 10 January 2002 18:54, [EMAIL PROTECTED] wrote:
You are right, I should've known (used it before) ..
Ofcourse you could do an array_reverse() before and after,
LOL !!
don't know about the performance impact of that however.
array_pop() and array_shift are *different* :)
--
Actually, my 'don't know' was more like 'does anyone know?' .
But I figured I could find that out for myself.
Wrote a small script that creates an array (numeric indexed range) of
10,000 elements.
Then it calls array_reverse() on it 100 times.
This took a little more than 3 secs. on a P3,
10 matches
Mail list logo