On 16/02/07, Eli [EMAIL PROTECTED] wrote:
Hi,
Why isn't there a function that acts like array_pop() returns a pair of
key-value rather than the value only ?
Reason is, that in order to pop the key-value pair, you do:
?php
$arr = array('a'=1,'b'=2,'c'=3,'d'=4);
$arr_keys = array_keys($arr);
2007. 02. 16, péntek keltezéssel 10.23-kor Robin Vickery ezt írta:
On 16/02/07, Eli [EMAIL PROTECTED] wrote:
Hi,
Why isn't there a function that acts like array_pop() returns a pair of
key-value rather than the value only ?
Reason is, that in order to pop the key-value pair, you do:
On 16/02/07, Németh Zoltán [EMAIL PROTECTED] wrote:
2007. 02. 16, péntek keltezéssel 10.23-kor Robin Vickery ezt írta:
On 16/02/07, Eli [EMAIL PROTECTED] wrote:
Hi,
Why isn't there a function that acts like array_pop() returns a pair of
key-value rather than the value only ?
Reason
2007. 02. 16, péntek keltezéssel 10.47-kor Robin Vickery ezt írta:
On 16/02/07, Németh Zoltán [EMAIL PROTECTED] wrote:
2007. 02. 16, péntek keltezéssel 10.23-kor Robin Vickery ezt írta:
On 16/02/07, Eli [EMAIL PROTECTED] wrote:
Hi,
Why isn't there a function that acts like
Robin Vickery wrote:
On 16/02/07, Eli [EMAIL PROTECTED] wrote:
Hi,
Why isn't there a function that acts like array_pop() returns a pair of
key-value rather than the value only ?
Reason is, that in order to pop the key-value pair, you do:
?php
$arr = array('a'=1,'b'=2,'c'=3,'d'=4);
$arr_keys =
Hi,
Why isn't there a function that acts like array_pop() returns a pair of
key-value rather than the value only ?
Reason is, that in order to pop the key-value pair, you do:
?php
$arr = array('a'=1,'b'=2,'c'=3,'d'=4);
$arr_keys = array_keys($arr);
$key = array_pop($arr_keys);
$value =
6 matches
Mail list logo