RE: [PHP-WIN] array_pop

From: Date: Thu, 05 Oct 2000 16:11:37 +0000
Subject: RE: [PHP-WIN] array_pop
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-2955@lists.php.net to get a copy of this message
Thanks Jacek, but what you said below is array_push !!! array_pop should remove an element from the array, not add one. Anyway, you're solution is good, but only for number indexed arrays. I still haven't figure out how to do it :( Nick. -----Original Message----- From: Jacek Bontko [mailto:jbontko@jurasoft.com.pl] Sent: Thursday, October 05, 2000 3:14 PM To: 'Nicolae Doca' Subject: RE: [PHP-WIN] array_pop Hi Nicolae, Maybe You get the answer but if You don't try this: ... $ar[1] = "One"; $ar[2] = "Two"; $ar[count($ar)+1] = "Three"; // This should works like array_pop, addiding element to the end of array ... Let me know if it works, or not. Jacek ___________________________ Jacek Bontko, JuraSoft Katowice email: jbontko@jurasoft.com.pl tel. 0501 817 443 ___________________________ -----Original Message----- From: Nicolae Doca [mailto:nicu@securities.ro] Sent: Thursday, October 05, 2000 10:07 AM To: Php-Windows Subject: [PHP-WIN] array_pop Hi guys, Does anyone has any idea on how to emulate the array_pop function with PHP3 ? Any idea would be apreciated. Regards, Nick -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#2955) next »