| home | resources |
search |
news | join | members: 6957 |
php | Fri, 2008-10-10 11:10 tags: Developer Zone, Opinion, PHP, arrays, frameworks When I started doing PHP and pretty much left ASP behind I was happy because there were so many shortcomings to ASP. There were thing you could not do unless you were ready to create a program that would run on IIS. PHP did not seem to have any of those weaknesses. As a matter of fact since changing over I have not found anything in PHP that I would consider a show stopper. But this does not mean that I am totally happy with everything in the language. There are a number of times I run into something and think "Why does't this do this? While working with arrays recently I came into such a moment. PHP has a number of tools for handling arrays. But it seems that none of them can handle two-dimensional or multi-dimesional arrays. While this may not be a show stopper it is a great annoyance, one that should be fixed or at least compensated for in the Zend framework.
<?phpThe above code produces this output. key1 As you can see only the first key is presented. There should be a construct or function in PHP that searches the entire array tree in one go. At the very least the present functions should be modified to accept parameters which would allow this to happpen. Such functionality is something that you would expect to have given the names of the functions. It is not just array_search but none of the functions that recurse through an array can do this without being placed in a loop. With such a common need for such a thing you would also think that it could be found in the Zend framework. So far I have not found anything in the Zend framework or any of the other frameworks that has this functionality. I have even looked in Ruby and Rails to see if there was something similar. No dice. If anyone has found something like this in any of the frameworks then please let me know.
Thoughtbox - So what did you think? |
Joomla! London Hotels
Silverlight Laptop Reviews
Silverlight Just Dial International Calls
Joomla! Excel Training Courses
Silverlight excel courses in london
Web Developers Data Recovery
|
||||||||
NewsletterGet updates on Hiveminds services, articles and downloads by signing up for the newsletter. |
Editor's choiceSome of the better articles, stories and tutorials found at Hiveminds. |
Find moreFind more of Hiveminds articles, stories, tutorials and user comments by searching. |
Picked linksHand picked websites and articles from around the web that provide quality reading. |