php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #15280 Feature request
Submitted: 2002-01-29 13:30 UTC Modified: 2002-02-10 00:11 UTC
From: Benjamin dot Eggerstedt at epost dot de Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.1.1 OS: Win2k
Private report: No CVE-ID: None
 [2002-01-29 13:30 UTC] Benjamin dot Eggerstedt at epost dot de
Hi,

I have mailed with Gabor Hojtsy and he said to me that i request my wish here.

This is a Copy - Paste of a part of the eMail:

###########

I would like to have a function that deletes the empty array entries:

a.e.
$test[0] = "Hello i am php 4.1.1";
$test[1] = "I am the best release ever :)";
$test[2] = "";
$test[3] = "";

I hope you know what i mean...

At the moment i have a loop that checkes this.

$k = count($test);
for($i=0;$i<=$k;$i++){
if(empty($test[$i])) unset($test[$i]);
}

I think it would not be hard to integrate that. I am a apprentice and i
will learn C/C++ after my php programming is well. I hope i could help bugfixing
the next releases, to help you all.

yours sincerly
Benjamin Eggerstedt

P.S. I know my english is terrible... ;)
P.P.S. You all do GREAT work!!!


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-29 14:59 UTC] mfischer@php.net
You mean something like array_unset_empty_valus() ?

I don't think there's a hard-coded need for it when user-space does it very well.

Can you give an example (except your programming lazyness to create a function) where the advantages would be?
 [2002-01-29 15:30 UTC] Benjamin dot Eggerstedt at epost dot de
I think you are right. I only wanted to help. sorry );

I will better think about it before posting in the future. Thanks for your time..
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 06 09:01:26 2024 UTC